Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(version): Replace blanket sanitization of all version output val…
…ue with more nuanced sanitization (#12307)
- Loading branch information
Showing
3 changed files
with
64 additions
and
43 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
72 changes: 36 additions & 36 deletions
72
packages/cli/src/__tests__/commands/__snapshots__/Version.test.ts.snap
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,49 +1,49 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`version basic version (Node-API) 1`] = ` | ||
prisma : placeholder | ||
@prisma/client : placeholder | ||
Current platform : placeholder | ||
Query Engine (Node-API) : placeholder | ||
Migration Engine : placeholder | ||
Introspection Engine : placeholder | ||
Format Binary : placeholder | ||
Default Engines Hash : placeholder | ||
Studio : placeholder | ||
prisma : 0.0.0 | ||
@prisma/client : 0.0.0 | ||
Current platform : TEST_PLATFORM | ||
Query Engine (Node-API) : libquery-engine DYNAMICENGINEVERSION (at sanitized_path/libquery_engine-TEST_PLATFORM.LIBRARY_TYPE.node) | ||
Migration Engine : migration-engine-cli DYNAMICENGINEVERSION (at sanitized_path/migration-engine-TEST_PLATFORM) | ||
Introspection Engine : introspection-core DYNAMICENGINEVERSION (at sanitized_path/introspection-engine-TEST_PLATFORM) | ||
Format Binary : prisma-fmt DYNAMICENGINEVERSION (at sanitized_path/prisma-fmt-TEST_PLATFORM) | ||
Default Engines Hash : DYNAMICENGINEVERSION | ||
Studio : STUDIOVERSION | ||
`; | ||
|
||
exports[`version basic version 1`] = ` | ||
prisma : placeholder | ||
@prisma/client : placeholder | ||
Current platform : placeholder | ||
Query Engine (Binary) : placeholder | ||
Migration Engine : placeholder | ||
Introspection Engine : placeholder | ||
Format Binary : placeholder | ||
Default Engines Hash : placeholder | ||
Studio : placeholder | ||
prisma : 0.0.0 | ||
@prisma/client : 0.0.0 | ||
Current platform : TEST_PLATFORM | ||
Query Engine (Binary) : query-engine DYNAMICENGINEVERSION (at sanitized_path/query-engine-TEST_PLATFORM) | ||
Migration Engine : migration-engine-cli DYNAMICENGINEVERSION (at sanitized_path/migration-engine-TEST_PLATFORM) | ||
Introspection Engine : introspection-core DYNAMICENGINEVERSION (at sanitized_path/introspection-engine-TEST_PLATFORM) | ||
Format Binary : prisma-fmt DYNAMICENGINEVERSION (at sanitized_path/prisma-fmt-TEST_PLATFORM) | ||
Default Engines Hash : DYNAMICENGINEVERSION | ||
Studio : STUDIOVERSION | ||
`; | ||
|
||
exports[`version version with custom binaries (Node-API) 1`] = ` | ||
prisma : placeholder | ||
@prisma/client : placeholder | ||
Current platform : placeholder | ||
Query Engine (Node-API) : placeholder | ||
Migration Engine : placeholder | ||
Introspection Engine : placeholder | ||
Format Binary : placeholder | ||
Default Engines Hash : placeholder | ||
Studio : placeholder | ||
prisma : 0.0.0 | ||
@prisma/client : 0.0.0 | ||
Current platform : TEST_PLATFORM | ||
Query Engine (Node-API) : libquery-engine STATICENGINEVERSION (at sanitized_path/libquery_engine-TEST_PLATFORM.LIBRARY_TYPE.node, resolved by PRISMA_QUERY_ENGINE_LIBRARY) | ||
Migration Engine : migration-engine-cli STATICENGINEVERSION (at sanitized_path/migration-engine-TEST_PLATFORM, resolved by PRISMA_MIGRATION_ENGINE_BINARY) | ||
Introspection Engine : introspection-core STATICENGINEVERSION (at sanitized_path/introspection-engine-TEST_PLATFORM, resolved by PRISMA_INTROSPECTION_ENGINE_BINARY) | ||
Format Binary : prisma-fmt STATICENGINEVERSION (at sanitized_path/prisma-fmt-TEST_PLATFORM, resolved by PRISMA_FMT_BINARY) | ||
Default Engines Hash : DYNAMICENGINEVERSION | ||
Studio : STUDIOVERSION | ||
`; | ||
|
||
exports[`version version with custom binaries 1`] = ` | ||
prisma : placeholder | ||
@prisma/client : placeholder | ||
Current platform : placeholder | ||
Query Engine (Binary) : placeholder | ||
Migration Engine : placeholder | ||
Introspection Engine : placeholder | ||
Format Binary : placeholder | ||
Default Engines Hash : placeholder | ||
Studio : placeholder | ||
prisma : 0.0.0 | ||
@prisma/client : 0.0.0 | ||
Current platform : TEST_PLATFORM | ||
Query Engine (Binary) : query-engine STATICENGINEVERSION (at sanitized_path/query-engine-TEST_PLATFORM, resolved by PRISMA_QUERY_ENGINE_BINARY) | ||
Migration Engine : migration-engine-cli STATICENGINEVERSION (at sanitized_path/migration-engine-TEST_PLATFORM, resolved by PRISMA_MIGRATION_ENGINE_BINARY) | ||
Introspection Engine : introspection-core STATICENGINEVERSION (at sanitized_path/introspection-engine-TEST_PLATFORM, resolved by PRISMA_INTROSPECTION_ENGINE_BINARY) | ||
Format Binary : prisma-fmt STATICENGINEVERSION (at sanitized_path/prisma-fmt-TEST_PLATFORM, resolved by PRISMA_FMT_BINARY) | ||
Default Engines Hash : DYNAMICENGINEVERSION | ||
Studio : STUDIOVERSION | ||
`; |