Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Aug 26, 2022
1 parent 96c9e4d commit 04f3c27
Show file tree
Hide file tree
Showing 17 changed files with 1,355 additions and 1,402 deletions.
80 changes: 40 additions & 40 deletions packages/loaders/git/tests/__snapshots__/loader.spec.ts.snap
@@ -1,38 +1,38 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`GitLoader load async should load type definitions from a pluckable file 1`] = `
Object {
"definitions": Array [
Object {
{
"definitions": [
{
"description": undefined,
"directives": Array [],
"fields": Array [
Object {
"arguments": Array [],
"directives": [],
"fields": [
{
"arguments": [],
"description": undefined,
"directives": Array [],
"directives": [],
"kind": "FieldDefinition",
"loc": Object {
"loc": {
"end": 28,
"start": 15,
},
"name": Object {
"name": {
"kind": "Name",
"loc": Object {
"loc": {
"end": 20,
"start": 15,
},
"value": "hello",
},
"type": Object {
"type": {
"kind": "NamedType",
"loc": Object {
"loc": {
"end": 28,
"start": 22,
},
"name": Object {
"name": {
"kind": "Name",
"loc": Object {
"loc": {
"end": 28,
"start": 22,
},
Expand All @@ -41,15 +41,15 @@ Object {
},
},
],
"interfaces": Array [],
"interfaces": [],
"kind": "ObjectTypeDefinition",
"loc": Object {
"loc": {
"end": 30,
"start": 0,
},
"name": Object {
"name": {
"kind": "Name",
"loc": Object {
"loc": {
"end": 10,
"start": 5,
},
Expand All @@ -58,46 +58,46 @@ Object {
},
],
"kind": "Document",
"loc": Object {
"loc": {
"end": 30,
"start": 0,
},
}
`;

exports[`GitLoader load sync should load type definitions from a pluckable file 1`] = `
Object {
"definitions": Array [
Object {
{
"definitions": [
{
"description": undefined,
"directives": Array [],
"fields": Array [
Object {
"arguments": Array [],
"directives": [],
"fields": [
{
"arguments": [],
"description": undefined,
"directives": Array [],
"directives": [],
"kind": "FieldDefinition",
"loc": Object {
"loc": {
"end": 28,
"start": 15,
},
"name": Object {
"name": {
"kind": "Name",
"loc": Object {
"loc": {
"end": 20,
"start": 15,
},
"value": "hello",
},
"type": Object {
"type": {
"kind": "NamedType",
"loc": Object {
"loc": {
"end": 28,
"start": 22,
},
"name": Object {
"name": {
"kind": "Name",
"loc": Object {
"loc": {
"end": 28,
"start": 22,
},
Expand All @@ -106,15 +106,15 @@ Object {
},
},
],
"interfaces": Array [],
"interfaces": [],
"kind": "ObjectTypeDefinition",
"loc": Object {
"loc": {
"end": 30,
"start": 0,
},
"name": Object {
"name": {
"kind": "Name",
"loc": Object {
"loc": {
"end": 10,
"start": 5,
},
Expand All @@ -123,7 +123,7 @@ Object {
},
],
"kind": "Document",
"loc": Object {
"loc": {
"end": 30,
"start": 0,
},
Expand Down
@@ -1,8 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Environment empty global prisma rc 1`] = `
Array [
Object {
[
{
"baseUrl": "https://eu1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand All @@ -11,7 +11,7 @@ Array [
"shared": true,
"workspaceSlug": undefined,
},
Object {
{
"baseUrl": "https://us1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand All @@ -24,8 +24,8 @@ Array [
`;

exports[`Environment interpolates env vars 1`] = `
Array [
Object {
[
{
"baseUrl": "https://eu1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand All @@ -34,7 +34,7 @@ Array [
"shared": true,
"workspaceSlug": undefined,
},
Object {
{
"baseUrl": "https://us1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand All @@ -47,8 +47,8 @@ Array [
`;

exports[`Environment loads multiple cluster definitions correctly + gives cluster by name 1`] = `
Array [
Object {
[
{
"baseUrl": "https://eu1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand All @@ -57,7 +57,7 @@ Array [
"shared": true,
"workspaceSlug": undefined,
},
Object {
{
"baseUrl": "https://us1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand All @@ -72,8 +72,8 @@ Array [
exports[`Environment loads multiple cluster definitions correctly + gives cluster by name 2`] = `undefined`;

exports[`Environment non-existent global prisma rc 1`] = `
Array [
Object {
[
{
"baseUrl": "https://eu1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand All @@ -82,7 +82,7 @@ Array [
"shared": true,
"workspaceSlug": undefined,
},
Object {
{
"baseUrl": "https://us1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand All @@ -103,8 +103,8 @@ exports[`Environment persists .prisma correctly 1`] = `
`;

exports[`Environment persists .prisma correctly 2`] = `
Array [
Object {
[
{
"baseUrl": "https://eu1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand All @@ -113,7 +113,7 @@ Array [
"shared": true,
"workspaceSlug": undefined,
},
Object {
{
"baseUrl": "https://us1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand All @@ -122,7 +122,7 @@ Array [
"shared": true,
"workspaceSlug": undefined,
},
Object {
{
"baseUrl": "http://localhost:60000",
"clusterSecret": "",
"isPrivate": false,
Expand All @@ -135,8 +135,8 @@ Array [
`;

exports[`Environment sets the platform token correctly 1`] = `
Array [
Object {
[
{
"baseUrl": "https://eu1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand All @@ -145,7 +145,7 @@ Array [
"shared": true,
"workspaceSlug": undefined,
},
Object {
{
"baseUrl": "https://us1.prisma.sh",
"clusterSecret": undefined,
"isPrivate": false,
Expand Down

1 comment on commit 04f3c27

@vercel
Copy link

@vercel vercel bot commented on 04f3c27 Aug 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.