-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
734f16d
commit a19a0a0
Showing
88 changed files
with
3,272 additions
and
2,170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
import type {Config} from 'jest'; | ||
import nextJest from 'next/jest.js' | ||
import type { Config } from 'jest'; | ||
import nextJest from 'next/jest.js'; | ||
|
||
const createJestConfig = nextJest({ | ||
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment | ||
dir: './packages/dapp', | ||
}) | ||
}); | ||
|
||
const config: Config = { | ||
coverageProvider: 'v8', | ||
projects: [ | ||
{ | ||
preset: "ts-jest", | ||
rootDir: "./packages/dapp", | ||
setupFilesAfterEnv: ["<rootDir>/test/setupTests.ts"], | ||
testEnvironment: 'jsdom', | ||
testMatch: ["<rootDir>/test/**/*.test.(ts|tsx|js|jsx)"], | ||
transform: { | ||
"^.+\\.(js|jsx|ts|tsx)$": [ | ||
"ts-jest", { | ||
tsconfig: "<rootDir>/tsconfig.test.json" | ||
} | ||
], | ||
}, | ||
transformIgnorePatterns: ["node_modules/(?!(viem|isows)/)"], | ||
} | ||
], | ||
verbose: true, | ||
} | ||
coverageProvider: 'v8', | ||
projects: [ | ||
{ | ||
preset: 'ts-jest', | ||
rootDir: './packages/dapp', | ||
setupFilesAfterEnv: ['<rootDir>/test/setupTests.ts'], | ||
testEnvironment: 'jsdom', | ||
testMatch: ['<rootDir>/test/**/*.test.(ts|tsx|js|jsx)'], | ||
transform: { | ||
'^.+\\.(js|jsx|ts|tsx)$': [ | ||
'ts-jest', | ||
{ | ||
tsconfig: '<rootDir>/tsconfig.test.json', | ||
}, | ||
], | ||
}, | ||
transformIgnorePatterns: ['node_modules/(?!(viem|isows)/)'], | ||
}, | ||
], | ||
verbose: true, | ||
}; | ||
|
||
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async | ||
export default createJestConfig(config); | ||
export default createJestConfig(config); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.