import type { Config } from 'jest'; const esModules = [ 'flo-bezier3', 'flo-graham-scan', 'flo-poly', 'flo-gauss-quadrature', 'flo-vector2d', 'big-float-ts', 'double-double', 'flo-boolean', 'flo-draw', 'flo-memoize', 'flo-ll-rb-tree', 'flo-lines-intersections', 'squares-rng' ].join('|'); const config: Config = { testEnvironment: 'node', resolver: "jest-ts-webcompat-resolver", setupFilesAfterEnv: ['/__tests__/helpers/jest.setup.ts'], testMatch: [ "**/__tests__/**/*.spec.ts"], collectCoverage: false, // Make true again! coverageProvider: 'v8', testTimeout: 15000, passWithNoTests: true, transform: { "^.+\\.(t|j)sx?$": "@swc/jest" }, transformIgnorePatterns: [ `/node_modules/(?!${esModules})` ] }; export default config;