Skip to content

Commit cd82e5a

Browse files
committed
refactor: moving setup to __tests__
1 parent ae43af0 commit cd82e5a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/__tests__/copyStaticTo.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from "fs-extra";
22
import path from "path";
33
import { execFileSync } from "child_process";
4-
import { setupTestFiles } from "../test-utils/setupTestUtils";
4+
import { setupTestFiles } from "./setupTestUtils";
55
import { describe, it, expect, beforeEach } from "@jest/globals";
66

77
const SCRIPT_PATH = path.join(__dirname, "../src/copyStaticTo.ts");

scripts/jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
testEnvironment: 'node',
55
roots: ['<rootDir>'],
66
testMatch: [
7-
'**/__tests__/**/*.ts',
7+
'**/__tests__/**/*.test.ts',
88
'**/?(*.)+(spec|test).ts'
99
],
1010
transform: {
@@ -17,7 +17,7 @@ module.exports = {
1717
],
1818
coverageDirectory: 'coverage',
1919
coverageReporters: ['text', 'lcov', 'html'],
20-
setupFilesAfterEnv: ['<rootDir>/test-utils/setupTestUtils.ts'],
20+
setupFilesAfterEnv: ['<rootDir>/__tests__/setupTestUtils.ts'],
2121
testTimeout: 10000,
2222
moduleDirectories: ['node_modules', '<rootDir>'],
2323
modulePaths: ['<rootDir>'],

0 commit comments

Comments
 (0)