* chore: rename js files to txt * chore: rename ts files to txt * chore: delete environment helpers * chore: convert global setup & teardown to txt * chore: rename helper js/ts files to txt * chore: rename seeder js/ts files to txt * chore: remove typeorm * chore: reintroduce used helpers
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
const glob = require(`glob`)
|
|
|
|
const pkgs = glob
|
|
.sync(`${__dirname}/*/`)
|
|
.map((p) => p.replace(__dirname, `<rootDir>/integration-tests`))
|
|
|
|
module.exports = {
|
|
testEnvironment: `node`,
|
|
testTimeout: 10000,
|
|
// globalSetup: "<rootDir>/integration-tests/globalSetup.js",
|
|
// globalTeardown: "<rootDir>/integration-tests/globalTeardown.js",
|
|
rootDir: `../`,
|
|
roots: pkgs,
|
|
projects: [
|
|
"<rootDir>/integration-tests/api/jest.config.js",
|
|
"<rootDir>/integration-tests/http/jest.config.js",
|
|
"<rootDir>/integration-tests/plugins/jest.config.js",
|
|
"<rootDir>/integration-tests/repositories/jest.config.js",
|
|
],
|
|
testPathIgnorePatterns: [
|
|
`/examples/`,
|
|
`/www/`,
|
|
`/dist/`,
|
|
`/node_modules/`,
|
|
`__tests__/fixtures`,
|
|
`__testfixtures__`,
|
|
`.cache`,
|
|
],
|
|
transform: {
|
|
"^.+\\.[jt]s$": [
|
|
"@swc/jest",
|
|
{
|
|
jsc: {
|
|
parser: { syntax: "typescript", decorators: true },
|
|
transform: { decoratorMetadata: true },
|
|
},
|
|
},
|
|
],
|
|
},
|
|
setupFiles: ["<rootDir>/integration-tests/setup-env.js"],
|
|
setupFilesAfterEnv: ["<rootDir>/integration-tests/setup.js"],
|
|
}
|