forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge remote-tracking branch 'upstream/canary' into feature/40…
…846-adjusted-i18n-domain-href
- Loading branch information
Showing
13 changed files
with
1,269 additions
and
415 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const nextJest = require('next/jest') | ||
|
||
const createJestConfig = nextJest() | ||
|
||
// Any custom config you want to pass to Jest | ||
const customJestConfig = { | ||
testMatch: ['**/*.test.js', '**/*.test.ts', '**/*.test.tsx'], | ||
setupFilesAfterEnv: ['<rootDir>/jest-setup-after-env.ts'], | ||
verbose: true, | ||
rootDir: 'test', | ||
modulePaths: ['<rootDir>/lib'], | ||
transformIgnorePatterns: ['/next[/\\\\]dist/', '/\\.next/'], | ||
testTimeout: 60000, | ||
testRunner: '@replayio/jest/runner', | ||
} | ||
|
||
// createJestConfig is exported in this way to ensure that next/jest can load the Next.js config which is async | ||
module.exports = createJestConfig(customJestConfig) |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.