const glob = require(`glob`) const pkgs = glob .sync(`${__dirname}/*/`) .map((p) => p.replace(__dirname, `/integration-tests`)) module.exports = { testEnvironment: `node`, rootDir: `../`, roots: pkgs, testPathIgnorePatterns: [ `/examples/`, `/www/`, `/dist/`, `/node_modules/`, `__tests__/fixtures`, `__testfixtures__`, `.cache`, ], transform: { "^.+\\.[jt]s$": `/jest-transformer.js` }, setupFilesAfterEnv: ["/integration-tests/setup.js"], }