diff --git a/packages/webgpu/jest.config.js b/packages/webgpu/jest.config.js index 0255acf67..3894e35ee 100644 --- a/packages/webgpu/jest.config.js +++ b/packages/webgpu/jest.config.js @@ -8,6 +8,10 @@ module.exports = { 'globalSetup.ts', 'globalTeardown.ts' ], + // modulePathIgnorePatterns only affects the module registry, not test + // discovery. Without this, the .d.ts files emitted into lib/ by `bob build` + // are picked up as test suites and fail with "must contain at least one test". + testPathIgnorePatterns: ['/node_modules/', '/lib/'], globalSetup: './src/__tests__/globalSetup.ts', globalTeardown: './src/__tests__/globalTeardown.ts', transform: {