Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

jest.config.ts

22 lines620 Bytes

1function makeConfig(name: string) {
2 return {
3 displayName: name,
4 testEnvironment: 'jsdom',
5 testMatch: [`<rootDir>/packages/${name}/**/*.test.[jt]s?(x)`],
6 setupFilesAfterEnv: [`<rootDir>/packages/${name}/__tests__/jest.setup.js`],
7 snapshotFormat: {
8 printBasicPrototype: false,
9 },
10 }
12​
13module.exports = {
14 projects: [
15 makeConfig('react-location'),
16 makeConfig('react-location-devtools'),
17 makeConfig('react-location-elements-to-routes'),
18 makeConfig('react-location-simple-cache'),
19 makeConfig('react-location-rank-routes'),
20 makeConfig('react-location-jsurl'),
21 ],