fixes broken tests

This commit is contained in:
James
2020-10-10 18:37:31 -04:00
parent 38f08d54e3
commit 57ef9fe623
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ module.exports = {
globalTeardown: '<rootDir>/tests/api/globalTeardown.js', globalTeardown: '<rootDir>/tests/api/globalTeardown.js',
testPathIgnorePatterns: [ testPathIgnorePatterns: [
'node_modules', 'node_modules',
'src/client/*', 'src/admin/*',
], ],
testTimeout: 15000, testTimeout: 15000,
moduleNameMapper: { moduleNameMapper: {

View File

@@ -1,7 +1,7 @@
module.exports = { module.exports = {
verbose: true, verbose: true,
testTimeout: 15000, testTimeout: 15000,
testRegex: '(/src/client/.*\\.(test|spec))\\.[jt]sx?$', testRegex: '(/src/admin/.*\\.(test|spec))\\.[jt]sx?$',
setupFilesAfterEnv: ['<rootDir>/tests/client/globalSetup.js'], setupFilesAfterEnv: ['<rootDir>/tests/client/globalSetup.js'],
moduleNameMapper: { moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/mocks/fileMock.js', '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/mocks/fileMock.js',