diff --git a/integration/cjs/integration.test.cjs b/integration/cjs/integration.test.cjs index b62e95e3a..e0ab630cd 100644 --- a/integration/cjs/integration.test.cjs +++ b/integration/cjs/integration.test.cjs @@ -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); + }); }); diff --git a/integration/esm/integration.test.mjs b/integration/esm/integration.test.mjs index 1bb905a2a..94504ca57 100644 --- a/integration/esm/integration.test.mjs +++ b/integration/esm/integration.test.mjs @@ -3,7 +3,7 @@ import { input } from '@inquirer/prompts'; import defaultInput from '@inquirer/input'; import { createPrompt } from '@inquirer/core'; import inquirer, { createPromptModule } from 'inquirer'; -import test from 'node:test'; +import { describe, it } from 'node:test'; import assert from 'node:assert'; import Base from 'inquirer/lib/prompts/base.js'; @@ -13,29 +13,31 @@ import observe from 'inquirer/lib/utils/events.js'; import * as utils from 'inquirer/lib/utils/readline.js'; import Paginator from 'inquirer/lib/utils/paginator.js'; -test('[ESM] @inquirer/prompts should be exported', () => { - assert(input instanceof Function); -}); +describe('ESM Integration', () => { + it('@inquirer/prompts should be exported', () => { + assert(input instanceof Function); + }); -test('[ESM] @inquirer/input should be exported', () => { - assert(defaultInput instanceof Function); -}); + it('@inquirer/input should be exported', () => { + assert(defaultInput instanceof Function); + }); -test('[ESM] @inquirer/core should export createPrompt', () => { - assert(createPrompt instanceof Function); -}); + it('@inquirer/core should export createPrompt', () => { + assert(createPrompt instanceof Function); + }); -test('[ESM] inquirer should be exported', () => { - assert(inquirer.prompt instanceof Function); - assert(inquirer.createPromptModule instanceof Function); - assert(createPromptModule instanceof Function); -}); + it('inquirer should be exported', () => { + assert(inquirer.prompt instanceof Function); + assert(inquirer.createPromptModule instanceof Function); + assert(createPromptModule instanceof Function); + }); -test('[ESM] inquirer custom prompts util paths are stable', () => { - assert(Base != null); - assert(Choices != null); - assert(Separator != null); - assert(observe != null); - assert(utils != null); - assert(Paginator != null); + it('inquirer custom prompts util paths are stable', () => { + assert(Base != null); + assert(Choices != null); + assert(Separator != null); + assert(observe != null); + assert(utils != null); + assert(Paginator != null); + }); });