Skip to content

Commit

Permalink
fix: Enforce __tests__ folder, exclude other utils
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Dec 19, 2024
1 parent 2123c7f commit 09664e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/configs/jest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export default {
'\\.frag$': 'jest-raw-loader',
'\\.wgsl$': 'jest-raw-loader',
},
testMatch: ['<rootDir>/**/*.test.ts']
testMatch: ['<rootDir>/**/__tests__/*.test.ts']
};
4 changes: 2 additions & 2 deletions lib/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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');
}

Expand Down

0 comments on commit 09664e5

Please sign in to comment.