Skip to content

Commit d32f457

Browse files
committed
fix: use proper test directory, test fix
1 parent fa1760a commit d32f457

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ describe('RunScriptWebpackPlugin', () => {
156156
});
157157

158158
it('should NOT restart server if autoRestart is false', () => {
159-
const plugin = new RunScriptWebpackPlugin({ name: 'main.js' });
159+
const plugin = new RunScriptWebpackPlugin({ name: 'main.js', autoRestart: false });
160160
plugin.apply(compiler);
161161

162162
const tapAsyncMock = compiler.hooks.afterEmit.tapAsync as jest.Mock;

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'node',
4-
testMatch: ['**/test/**/*.test.ts'],
4+
testMatch: ['**/__tests__/**/*.test.ts'],
55
};

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@
6767
"skipLibCheck": true, /* Skip type checking of declaration files. */
6868
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
6969
},
70-
"include": ["src"]
70+
"include": ["src", "__tests__"]
7171
}

0 commit comments

Comments
 (0)