-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: Unify integration tests styles with other tests
- Loading branch information
Showing
2 changed files
with
35 additions
and
31 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 |
---|---|---|
@@ -1,18 +1,20 @@ | ||
/* eslint-disable n/no-unsupported-features/node-builtins */ | ||
const test = require('node:test'); | ||
const { describe, it } = require('node:test'); | ||
const assert = require('node:assert'); | ||
const { input } = require('@inquirer/prompts'); | ||
const { createPrompt } = require('@inquirer/core'); | ||
const defaultInput = require('@inquirer/input').default; | ||
|
||
test('[CJS] @inquirer/prompts should be exported', () => { | ||
assert(input instanceof Function); | ||
}); | ||
describe('CommonJS Integration', () => { | ||
it('@inquirer/prompts should be exported', () => { | ||
assert(input instanceof Function); | ||
}); | ||
|
||
test('[CJS] @inquirer/input should be exported', () => { | ||
assert(defaultInput instanceof Function); | ||
}); | ||
it('@inquirer/input should be exported', () => { | ||
assert(defaultInput instanceof Function); | ||
}); | ||
|
||
test('[CJS] @inquirer/core should export createPrompt', () => { | ||
assert(createPrompt instanceof Function); | ||
it('@inquirer/core should export createPrompt', () => { | ||
assert(createPrompt instanceof Function); | ||
}); | ||
}); |
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