From b3ca3b2f25931afb350027bde87dc3d4f9a741b0 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 13 Mar 2024 12:21:13 -0400 Subject: chore: rough first pass on spec tests (#22877) --- tests/specs/npm/es_module/__test__.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/specs/npm/es_module/__test__.json (limited to 'tests/specs/npm/es_module/__test__.json') diff --git a/tests/specs/npm/es_module/__test__.json b/tests/specs/npm/es_module/__test__.json new file mode 100644 index 000000000..f720a2bc0 --- /dev/null +++ b/tests/specs/npm/es_module/__test__.json @@ -0,0 +1,22 @@ +{ + "base": "npm", + "steps": [{ + "args": "run --allow-read --allow-env main.js", + "output": "main.out" + }, { + "cleanDenoDir": true, + "args": "test --allow-read --allow-env test.js", + "output": "test.out" + }, { + "cleanDenoDir": true, + "args": [ + "eval", + "import chalk from 'npm:chalk@5'; console.log(chalk.green('chalk esm loads'));" + ], + "output": "main.out" + }, { + "args": "bundle --quiet main.js", + "output": "bundle.out", + "exitCode": 1 + }] +} -- cgit v1.2.3