2022-11-16 16:31:01 +01:00
|
|
|
'use strict';
|
|
|
|
|
2021-09-14 14:43:42 +03:00
|
|
|
module.exports = {
|
2024-04-02 11:19:43 +02:00
|
|
|
setupFilesAfterEnv: [__dirname + '/tests/setup/unit.setup.js'],
|
2022-10-19 12:11:01 +03:00
|
|
|
modulePathIgnorePatterns: ['.cache', 'dist'],
|
2023-08-30 09:56:38 +02:00
|
|
|
testPathIgnorePatterns: ['.testdata.js', '.test.utils.js', '.d.ts'],
|
2023-05-18 10:53:07 +02:00
|
|
|
testMatch: ['**/__tests__/**/*.{js,ts,jsx,tsx}'],
|
|
|
|
transform: {
|
|
|
|
'^.+\\.(t|j)sx?$': ['@swc/jest'],
|
|
|
|
},
|
2022-03-12 14:54:39 +07:00
|
|
|
// 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
|
2022-03-12 14:36:58 +07:00
|
|
|
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
|
2021-09-15 18:04:17 +02:00
|
|
|
};
|