Skip to content

Commit

Permalink
add cross-env to fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed May 7, 2021
1 parent b48091c commit b4985bb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/e2e/e2e.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import endent from 'endent'
import * as Execa from 'execa'
import { dump } from 'nexus/dist/utils'
import stripAnsi from 'strip-ansi'
Expand Down Expand Up @@ -55,10 +56,11 @@ function setupTestNexusPrismaProject(): TestProject {
'reflect:prisma': 'prisma generate',
// peer dependency check will fail since we're using yalc, e.g.:
// " ... nexus-prisma@0.0.0-dripip+c2653557 does not officially support @prisma/client@2.22.1 ... "
'reflect:nexus': 'NO_PEER_DEPENDENCY_CHECK=true ts-node --transpile-only main',
'reflect:nexus': 'cross-env NO_PEER_DEPENDENCY_CHECK=true ts-node --transpile-only main',
build: 'tsc',
},
dependencies: {
'cross-env': '^7.0.1',
'@prisma/client': '^2.18.0',
'@types/node': '^14.14.32',
graphql: '^15.5.0',
Expand Down Expand Up @@ -87,7 +89,7 @@ beforeAll(() => {
it('When bundled custom scalars are used the project type checks and generates expected GraphQL schema', () => {
setupTestProjectCase({
testProject,
prismaSchema: createPrismaSchema(`
prismaSchema: createPrismaSchema(endent`
model M1 {
id String @id
someJsonField Json
Expand All @@ -100,7 +102,7 @@ it('When bundled custom scalars are used the project type checks and generates e
c
}
`),
main: /*ts*/ `
main: /*ts*/ endent`
import { makeSchema, objectType, enumType } from 'nexus'
import { M1, E1 } from 'nexus-prisma'
import * as customScalars from 'nexus-prisma/scalars'
Expand Down

0 comments on commit b4985bb

Please sign in to comment.