strapi/jest.base-config.js

14 lines
678 B
JavaScript
Raw Normal View History

2022-11-16 16:31:01 +01:00
'use strict';
module.exports = {
rootDir: __dirname,
setupFilesAfterEnv: ['<rootDir>/test/unit.setup.js'],
2022-10-19 12:11:01 +03:00
modulePathIgnorePatterns: ['.cache', 'dist'],
2023-01-24 09:35:09 +01:00
testPathIgnorePatterns: ['.testdata.js', '.test.utils.js'],
2023-01-24 11:25:20 +01:00
// TODO: testMatch should only include files with (test|spec) even within __tests__ so that utilities can be included and ignored there
testMatch: ['/**/__tests__/**/*.[jt]s?(x)'],
// Use `jest-watch-typeahead` version 0.6.5. Newest version 1.0.0 does not support jest@26
// Reference: https://github.com/jest-community/jest-watch-typeahead/releases/tag/v1.0.0
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
};