-
Notifications
You must be signed in to change notification settings - Fork 45
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
Jason Kuhrt
authored
Feb 20, 2021
1 parent
4992741
commit 2173bf0
Showing
9 changed files
with
435 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## Tests | ||
|
||
- We disable `kleur` colors so snapshots do not have them. It would be nice to put the DX of colors into tests but needs some work. Node 12/14 results in different codes, [thus different snapshots](https://github.com/prisma/nexus-prisma/pull/3#issuecomment-782432471). See test-mode feature request here: https://github.com/lukeed/kleur/issues/47#issue-812419257. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ValidatePeerDependencies if peer dep missing, then returns failure 1`] = ` | ||
"{ | ||
kind: 'peer_dep_not_installed', | ||
message: 'ERROR: charlie is a peer dependency required by alpha. But you have not installed it into this project yet. Please run \`yarn add charlie\`.' | ||
}" | ||
`; | ||
|
||
exports[`ValidatePeerDependencies if peer dep package.json missing version field, then returns failure 1`] = ` | ||
"{ | ||
kind: 'peer_dep_invalid_package_json', | ||
message: 'WARNING: Peer dependency validation check failed unexpectedly. alpha requires peer dependency charlie. No version info for charlie could be found in its package.json thus preventing a check if its version satisfies the peer dependency version range.' | ||
}" | ||
`; | ||
|
||
exports[`ValidatePeerDependencies if peer dep version satisfies required range, then returns null 1`] = `"null"`; | ||
|
||
exports[`ValidatePeerDependencies if project peer dep version does not satisfy required range, then returns failure 1`] = ` | ||
"{ | ||
kind: 'peer_dep_invalid_version', | ||
message: 'WARNING: Peer dependency validation check failed: alpha@1.0.0 does not officially support charlie@1.0.0. The officially supported range is: \`2.0.x\`. This could lead to undefined behaviors and bugs.' | ||
}" | ||
`; | ||
|
||
exports[`enforceValidPeerDependencies if peer dependency is missing, than logs and process exits 1 1`] = ` | ||
"{ | ||
kind: 'peer_dep_not_installed', | ||
message: 'ERROR: charlie is a peer dependency required by alpha. But you have not installed it into this project yet. Please run \`yarn add charlie\`.' | ||
} | ||
ERROR: charlie is a peer dependency required by alpha. But you have not installed it into this project yet. Please run \`yarn add charlie\`." | ||
`; |
Oops, something went wrong.