diff --git a/package.json b/package.json index a5e76b7e..c126eeea 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'", "pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs", "test": "c8 mocha ./test/*.cjs", - "test:esm": "c8 mocha ./test/esm/cliui-test.mjs", + "test:esm": "c8 mocha ./test/**/*.mjs", "postest": "check", "coverage": "c8 report --check-coverage", "precompile": "rimraf build", diff --git a/test/esm/cliui-test.mjs b/test/esm/cliui-test.mjs index f57d77d1..93bbff4d 100644 --- a/test/esm/cliui-test.mjs +++ b/test/esm/cliui-test.mjs @@ -35,13 +35,14 @@ describe('ESM', () => { // TODO: we should flesh out the Deno and ESM implementation // such that it spreads words out over multiple columns appropriately: const expected = [ - 'i am a string ti am a seconi am a third', - 'hat should be wd string tha string that', - 'rapped t should be should be w', - ' wrapped rapped' + 'i am a string i am a i am a third', + 'that should be second string that', + 'wrapped string that should be', + ' should be wrapped', + ' wrapped', ] ui.toString().split('\n').forEach((line, i) => { strictEqual(line, expected[i]) }) }) -}) \ No newline at end of file +})