diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2022-08-20 11:31:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-20 11:31:33 -0400 |
| commit | 87f80ff6be5e2a132b583a9c380fff5db3cb2b07 (patch) | |
| tree | b2c43c9004b9ada204f3b5db7c221fa6322f026a /cli/tests/testdata/npm/cjs_with_deps | |
| parent | 1ffbd561642d05a05e18ada764d50581dea779ef (diff) | |
feat(unstable): initial support for npm specifiers (#15484)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tests/testdata/npm/cjs_with_deps')
| -rw-r--r-- | cli/tests/testdata/npm/cjs_with_deps/main.js | 12 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/cjs_with_deps/main.out | 15 |
2 files changed, 27 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/cjs_with_deps/main.js b/cli/tests/testdata/npm/cjs_with_deps/main.js new file mode 100644 index 000000000..420136c92 --- /dev/null +++ b/cli/tests/testdata/npm/cjs_with_deps/main.js @@ -0,0 +1,12 @@ +import chalk from "npm:chalk@4"; +import { expect } from "npm:chai@4.2"; + +console.log(chalk.green("chalk cjs loads")); + +const timeout = setTimeout(() => {}, 0); +expect(timeout).to.be.a("number"); +clearTimeout(timeout); + +const interval = setInterval(() => {}, 100); +expect(interval).to.be.a("number"); +clearInterval(interval); diff --git a/cli/tests/testdata/npm/cjs_with_deps/main.out b/cli/tests/testdata/npm/cjs_with_deps/main.out new file mode 100644 index 000000000..ad31742d9 --- /dev/null +++ b/cli/tests/testdata/npm/cjs_with_deps/main.out @@ -0,0 +1,15 @@ +Download http://localhost:4545/npm/registry/ansi-styles/ansi-styles-4.3.0.tgz +Download http://localhost:4545/npm/registry/assertion-error/assertion-error-1.1.0.tgz +Download http://localhost:4545/npm/registry/chai/chai-4.3.6.tgz +Download http://localhost:4545/npm/registry/chalk/chalk-4.1.2.tgz +Download http://localhost:4545/npm/registry/check-error/check-error-1.0.2.tgz +Download http://localhost:4545/npm/registry/color-convert/color-convert-2.0.1.tgz +Download http://localhost:4545/npm/registry/color-name/color-name-1.1.4.tgz +Download http://localhost:4545/npm/registry/deep-eql/deep-eql-3.0.1.tgz +Download http://localhost:4545/npm/registry/get-func-name/get-func-name-2.0.0.tgz +Download http://localhost:4545/npm/registry/has-flag/has-flag-4.0.0.tgz +Download http://localhost:4545/npm/registry/loupe/loupe-2.3.4.tgz +Download http://localhost:4545/npm/registry/pathval/pathval-1.1.1.tgz +Download http://localhost:4545/npm/registry/supports-color/supports-color-7.2.0.tgz +Download http://localhost:4545/npm/registry/type-detect/type-detect-4.0.8.tgz +chalk cjs loads |
