Files
directus/api/jest.config.js
Rijk van Zanten 19ddd89d8d Move unit tests to files they apply to (#15130)
* Move unit tests to files they apply to

* Remove tests root
2022-08-17 16:01:16 -04:00

15 lines
301 B
JavaScript

const base = require('../jest.config.js');
require('dotenv').config();
module.exports = {
...base,
roots: ['<rootDir>/src'],
verbose: true,
setupFiles: ['dotenv/config'],
collectCoverageFrom: ['src/**/*.ts'],
testEnvironmentOptions: {
url: process.env.TEST_URL || 'http://localhost',
},
};