const glob = require(`glob`) const pkgs = glob .sync(`${__dirname}/*/`) .map((p) => p.replace(__dirname, `/integration-tests`)) module.exports = { testEnvironment: `node`, testTimeout: 10000, // globalSetup: "/integration-tests/globalSetup.js", // globalTeardown: "/integration-tests/globalTeardown.js", rootDir: `../`, roots: pkgs, projects: [ "/integration-tests/api/jest.config.js", "/integration-tests/http/jest.config.js", "/integration-tests/plugins/jest.config.js", "/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: { useDefineForClassFields: false, legacyDecorator: true, decoratorMetadata: true, }, target: "ES2021", }, }, ], }, setupFiles: ["/integration-tests/setup-env.js"], setupFilesAfterEnv: ["/integration-tests/setup.js"], }