Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/unit/commands/tsgen.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {test} from '@oclif/test'

Check warning on line 1 in test/unit/commands/tsgen.test.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Definition for rule 'unicorn/prefer-module' was not found

Check warning on line 1 in test/unit/commands/tsgen.test.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Definition for rule 'unicorn/prefer-module' was not found
import {configHandler} from '@contentstack/cli-utilities'

import * as mock from '../mock/common.mock.json'
Expand All @@ -23,9 +23,9 @@
.stdout({print: process.env.PRINT === 'true' || false})
.nock(graphqlUrl, api =>
api
.post(`/stacks/${mock.tokens[alias].apiKey}`)
.post(`/stacks/${mock.tokens[alias].apiKey}?environment=development`)
.reply(200, {
data: mock.output,
data: mock.mock_data,
})
)
.command(['tsgen', '--token-alias', alias, '--output', filePath, '--api-type', 'graphql'])
Expand All @@ -37,9 +37,9 @@
.stdout({print: process.env.PRINT === 'true' || false})
.nock(graphqlUrl, api =>
api
.post(`/stacks/${mock.tokens[alias].apiKey}`)
.post(`/stacks/${mock.tokens[alias].apiKey}?environment=development`)
.reply(200, {
data: mock.output,
data: mock.mock_data,
})
)
.command(['tsgen', '--api-type', 'graphql', '-a', alias, '--output', filePath, '--namespace', 'GraphQL'])
Expand Down
Loading
Loading