jest.config.ts 392 B

123456789101112131415
  1. import type { Config } from "@jest/types"
  2. import path from "path"
  3. const testDir = path.resolve(__dirname, "../../.temp/tests/ponicode")
  4. const sourceDir = path.resolve(__dirname, "../../.temp/manualBuildCore")
  5. const config: Config.InitialOptions = {
  6. rootDir: testDir,
  7. testMatch: ["**/*.test.js"],
  8. moduleNameMapper: {
  9. "babylonjs/(.*)": path.join(sourceDir, "$1"),
  10. },
  11. }
  12. export = config