diff --git a/lib/configs/jest.mjs b/lib/configs/jest.mjs index bd16090..8a4e1c8 100644 --- a/lib/configs/jest.mjs +++ b/lib/configs/jest.mjs @@ -9,5 +9,5 @@ export default { '\\.frag$': 'jest-raw-loader', '\\.wgsl$': 'jest-raw-loader', }, - testMatch: ['/**/*.test.ts'] + testMatch: ['/**/__tests__/*.test.ts'] }; diff --git a/lib/index.mjs b/lib/index.mjs index 887c902..00a5fac 100755 --- a/lib/index.mjs +++ b/lib/index.mjs @@ -58,7 +58,7 @@ const tsc = async (tsconfigFile, ...args) => /** Wrapper for Jest */ const test = async (additionalArgs) => { - const testFiles = await glob(path.join(process.cwd(), '**/*.test.ts')); + const testFiles = await glob(path.join(process.cwd(), '**/__tests__/*.test.ts')); if (testFiles.length === 0) { @@ -124,7 +124,7 @@ const bundleTypes = async () => rootDir: './src', }, // Make sure to exclude any Jest test files - exclude: ['**/*.test.ts'] + exclude: ['**/__tests__'] }, null, 2), 'utf8'); }