-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(providers): add
normalizeIdentifier
to EmailProvider
* fix(providers): add `normalizeIdentifier` to EmailProvider * docs: document `normalizeIdentifier` * fix: allow throwing error from normalizer * test: add e-mail tests * chore: log provider id * test: merge client+config jest configs and add coverage report * test: show coverage for untested files * fix: only allow first domain in email. Add tests * chore: add `coverage` to tsconfig exclude list * cleanup * revert Co-authored-by: Thang Vu <thvu@hey.com>
- Loading branch information
1 parent
a21db89
commit afb1fcd
Showing
12 changed files
with
301 additions
and
66 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 was deleted.
Oops, something went wrong.
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,34 @@ | ||
/** @type {import('jest').Config} */ | ||
module.exports = { | ||
projects: [ | ||
{ | ||
displayName: "core", | ||
testMatch: ["**/*.test.ts"], | ||
rootDir: ".", | ||
setupFilesAfterEnv: ["./config/jest-setup.js"], | ||
transform: { | ||
"\\.(js|jsx|ts|tsx)$": ["@swc/jest", require("./swc.config")], | ||
}, | ||
coveragePathIgnorePatterns: ["tests"], | ||
}, | ||
{ | ||
displayName: "client", | ||
testMatch: ["**/*.test.js"], | ||
setupFilesAfterEnv: ["./config/jest-setup.js"], | ||
rootDir: ".", | ||
transform: { | ||
"\\.(js|jsx|ts|tsx)$": ["@swc/jest", require("./swc.config")], | ||
}, | ||
testEnvironment: "jsdom", | ||
coveragePathIgnorePatterns: ["__tests__"], | ||
}, | ||
], | ||
watchPlugins: [ | ||
"jest-watch-typeahead/filename", | ||
"jest-watch-typeahead/testname", | ||
], | ||
collectCoverage: true, | ||
coverageDirectory: "../coverage", | ||
coverageReporters: ["html", "text-summary"], | ||
collectCoverageFrom: ["src/**/*.(js|jsx|ts|tsx)"], | ||
} |
This file was deleted.
Oops, something went wrong.
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.
afb1fcd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
next-auth – ./
next-auth-git-main-nextauthjs.vercel.app
next-auth-nextauthjs.vercel.app
next-auth-phi-two.vercel.app
www.next-auth.js.org
next-auth.js.org