api
This commit is contained in:
8
frontend/web/api-doc/config/jest/jest.artifact.config.js
Normal file
8
frontend/web/api-doc/config/jest/jest.artifact.config.js
Normal file
@ -0,0 +1,8 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
rootDir: path.join(__dirname, '..', '..'),
|
||||
testEnvironment: 'jsdom',
|
||||
testMatch: ['**/test/build-artifacts/**/*.js'],
|
||||
transformIgnorePatterns: ['/node_modules/(?!(swagger-client|react-syntax-highlighter)/)'],
|
||||
};
|
23
frontend/web/api-doc/config/jest/jest.unit.config.js
Normal file
23
frontend/web/api-doc/config/jest/jest.unit.config.js
Normal file
@ -0,0 +1,23 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
rootDir: path.join(__dirname, '..', '..'),
|
||||
testEnvironment: 'jest-environment-jsdom',
|
||||
testMatch: [
|
||||
'**/test/unit/*.js?(x)',
|
||||
'**/test/unit/**/*.js?(x)',
|
||||
],
|
||||
setupFiles: ['<rootDir>/test/unit/jest-shim.js'],
|
||||
setupFilesAfterEnv: ['<rootDir>/test/unit/setup.js'],
|
||||
testPathIgnorePatterns: [
|
||||
'<rootDir>/node_modules/',
|
||||
'<rootDir>/test/build-artifacts/',
|
||||
'<rootDir>/test/mocha',
|
||||
'<rootDir>/test/unit/jest-shim.js',
|
||||
'<rootDir>/test/unit/setup.js',
|
||||
'<rootDir>/test/unit/xss/anchor-target-rel/online-validator-badge.jsx',
|
||||
'<rootDir>/test/unit/components/online-validator-badge.jsx',
|
||||
'<rootDir>/test/unit/components/live-response.jsx',
|
||||
],
|
||||
silent: true, // set to `false` to allow console.* calls to be printed
|
||||
};
|
Reference in New Issue
Block a user