mirror of
https://github.com/supabase/supabase.git
synced 2026-07-04 23:14:28 +08:00
25 lines
628 B
TypeScript
25 lines
628 B
TypeScript
import type { Config } from '@jest/types'
|
|
|
|
const config: Config.InitialOptions = {
|
|
preset: 'ts-jest',
|
|
transform: {
|
|
'^.+\\.ts?$': 'ts-jest',
|
|
},
|
|
moduleFileExtensions: ['ts', 'js', 'cjs', 'json', 'node'],
|
|
globalSetup: '<rootDir>/.jest/jest-env.ts',
|
|
globalTeardown: '<rootDir>/.jest/teardown.ts',
|
|
// setupFiles: ['<rootDir>/.jest/jest-env.js'],
|
|
setupFilesAfterEnv: ['<rootDir>/.jest/jest-custom-reporter.ts'],
|
|
testRunner: 'jest-jasmine2',
|
|
testTimeout: 15000,
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 0,
|
|
functions: 0,
|
|
lines: 0,
|
|
statements: 0,
|
|
},
|
|
},
|
|
}
|
|
export default config
|