Skip to content

Commit

Permalink
test(form-builder): update test file pattern regex
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Apr 8, 2021
1 parent 438137c commit 8a3ce7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@sanity/form-builder/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
collectCoverageFrom: ['src/**.js'],
testRegex: '(/src/.*__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$',
testRegex:
'(src/(.*__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$)|(test/((.*\\.|/)(test|spec))\\.[jt]sx?$)',
// Setup timezone
globalSetup: '<rootDir>/test/setup/global.ts',
setupFiles: ['<rootDir>/test/setup/environment.ts'],
Expand Down

0 comments on commit 8a3ce7a

Please sign in to comment.