mirror of
https://github.com/anonklub/anonklub.git
synced 2026-01-09 18:07:55 -05:00
* chore: replace `prettier` and `eslint` by `biome` (#421) * chore: replace `prettier` and `eslint` by `biome` * chore: lint * changeset
51 lines
1.1 KiB
JavaScript
51 lines
1.1 KiB
JavaScript
const tsJestPreset = require('ts-jest/jest-preset')
|
|
const { join } = require('node:path')
|
|
|
|
const projects = [
|
|
...['proof', 'query'].map((name) => `pkgs/${name}`),
|
|
'query-api',
|
|
].map((name) => join(__dirname, '..', name, 'test'))
|
|
|
|
/**
|
|
* @type {import('ts-jest').JestConfigWithTsJest}
|
|
*/
|
|
module.exports = {
|
|
...tsJestPreset,
|
|
clearMocks: true,
|
|
collectCoverage: true,
|
|
collectCoverageFrom: ['src/**/*.ts', '!**/*.d.ts'],
|
|
coverageDirectory: join(__dirname, '..', 'coverage'),
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 46,
|
|
functions: 67,
|
|
lines: 80,
|
|
statements: 80,
|
|
},
|
|
},
|
|
moduleDirectories: [
|
|
'node_modules',
|
|
'<rootDir>/node_modules',
|
|
'<rootDir>/*/src',
|
|
'<rootDir>/src',
|
|
],
|
|
moduleFileExtensions: ['js', 'json', 'ts'],
|
|
projects,
|
|
rootDir: '..',
|
|
setupFilesAfterEnv: [require.resolve('../test/setup.ts')],
|
|
testPathIgnorePatterns: [
|
|
'.graphclient',
|
|
'coverage',
|
|
'dist',
|
|
'node_modules',
|
|
'openzeppelin-contracts',
|
|
'pnpm-lock.yaml',
|
|
],
|
|
verbose: true,
|
|
watchPlugins: [
|
|
'jest-watch-select-projects',
|
|
'jest-watch-typeahead/filename',
|
|
'jest-watch-typeahead/testname',
|
|
],
|
|
}
|