diff options
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 | 33 | ||||
-rw-r--r-- | cli/tests/testdata/npm/cjs_with_deps/main_info.out | 22 | ||||
-rw-r--r-- | cli/tests/testdata/npm/cjs_with_deps/main_info_json.out | 149 | ||||
-rw-r--r-- | cli/tests/testdata/npm/cjs_with_deps/main_node_modules.out | 47 |
5 files changed, 0 insertions, 263 deletions
diff --git a/cli/tests/testdata/npm/cjs_with_deps/main.js b/cli/tests/testdata/npm/cjs_with_deps/main.js deleted file mode 100644 index 568726874..000000000 --- a/cli/tests/testdata/npm/cjs_with_deps/main.js +++ /dev/null @@ -1,12 +0,0 @@ -import chalk from "npm:chalk@4"; -import { expect } from "npm:chai@4.3"; - -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 deleted file mode 100644 index aac21abba..000000000 --- a/cli/tests/testdata/npm/cjs_with_deps/main.out +++ /dev/null @@ -1,33 +0,0 @@ -[UNORDERED_START] -Download http://localhost:4545/npm/registry/chalk -Download http://localhost:4545/npm/registry/chai -Download http://localhost:4545/npm/registry/ansi-styles -Download http://localhost:4545/npm/registry/supports-color -Download http://localhost:4545/npm/registry/assertion-error -Download http://localhost:4545/npm/registry/check-error -Download http://localhost:4545/npm/registry/deep-eql -Download http://localhost:4545/npm/registry/get-func-name -Download http://localhost:4545/npm/registry/loupe -Download http://localhost:4545/npm/registry/pathval -Download http://localhost:4545/npm/registry/type-detect -Download http://localhost:4545/npm/registry/color-convert -Download http://localhost:4545/npm/registry/has-flag -Download http://localhost:4545/npm/registry/color-name -[UNORDERED_END] -[UNORDERED_START] -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 -[UNORDERED_END] -chalk cjs loads diff --git a/cli/tests/testdata/npm/cjs_with_deps/main_info.out b/cli/tests/testdata/npm/cjs_with_deps/main_info.out deleted file mode 100644 index bcaaf1eec..000000000 --- a/cli/tests/testdata/npm/cjs_with_deps/main_info.out +++ /dev/null @@ -1,22 +0,0 @@ -local: [WILDCARD]main.js -type: JavaScript -dependencies: 14 unique -size: [WILDCARD] - -file:///[WILDCARD]/npm/cjs_with_deps/main.js ([WILDCARD]) -├─┬ npm:/chalk@4.1.2 ([WILDCARD]) -│ ├─┬ npm:/ansi-styles@4.3.0 ([WILDCARD]) -│ │ └─┬ npm:/color-convert@2.0.1 ([WILDCARD]) -│ │ └── npm:/color-name@1.1.4 ([WILDCARD]) -│ └─┬ npm:/supports-color@7.2.0 ([WILDCARD]) -│ └── npm:/has-flag@4.0.0 ([WILDCARD]) -└─┬ npm:/chai@4.3.6 ([WILDCARD]) - ├── npm:/assertion-error@1.1.0 ([WILDCARD]) - ├── npm:/check-error@1.0.2 ([WILDCARD]) - ├─┬ npm:/deep-eql@3.0.1 ([WILDCARD]) - │ └── npm:/type-detect@4.0.8 ([WILDCARD]) - ├── npm:/get-func-name@2.0.0 ([WILDCARD]) - ├─┬ npm:/loupe@2.3.4 ([WILDCARD]) - │ └── npm:/get-func-name@2.0.0 ([WILDCARD]) - ├── npm:/pathval@1.1.1 ([WILDCARD]) - └── npm:/type-detect@4.0.8 ([WILDCARD]) diff --git a/cli/tests/testdata/npm/cjs_with_deps/main_info_json.out b/cli/tests/testdata/npm/cjs_with_deps/main_info_json.out deleted file mode 100644 index fd850b8a1..000000000 --- a/cli/tests/testdata/npm/cjs_with_deps/main_info_json.out +++ /dev/null @@ -1,149 +0,0 @@ -{ - "roots": [ - "file://[WILDCARD]/main.js" - ], - "modules": [ - { - "kind": "esm", - "dependencies": [ - { - "specifier": "npm:chalk@4", - "code": { - "specifier": "npm:chalk@4", - "span": { - "start": { - "line": 0, - "character": 18 - }, - "end": { - "line": 0, - "character": 31 - } - } - }, - "npmPackage": "chalk@4.1.2" - }, - { - "specifier": "npm:chai@4.3", - "code": { - "specifier": "npm:chai@4.3", - "span": { - "start": { - "line": 1, - "character": 23 - }, - "end": { - "line": 1, - "character": 37 - } - } - }, - "npmPackage": "chai@4.3.6" - } - ], - "local": "[WILDCARD]main.js", - "emit": null, - "map": null, - "size": 325, - "mediaType": "JavaScript", - "specifier": "[WILDCARD]/main.js" - } - ], - "redirects": { - "npm:chai@4.3": "npm:/chai@4.3.6", - "npm:chalk@4": "npm:/chalk@4.1.2" - }, - "npmPackages": { - "ansi-styles@4.3.0": { - "name": "ansi-styles", - "version": "4.3.0", - "dependencies": [ - "color-convert@2.0.1" - ] - }, - "assertion-error@1.1.0": { - "name": "assertion-error", - "version": "1.1.0", - "dependencies": [] - }, - "chai@4.3.6": { - "name": "chai", - "version": "4.3.6", - "dependencies": [ - "assertion-error@1.1.0", - "check-error@1.0.2", - "deep-eql@3.0.1", - "get-func-name@2.0.0", - "loupe@2.3.4", - "pathval@1.1.1", - "type-detect@4.0.8" - ] - }, - "chalk@4.1.2": { - "name": "chalk", - "version": "4.1.2", - "dependencies": [ - "ansi-styles@4.3.0", - "supports-color@7.2.0" - ] - }, - "check-error@1.0.2": { - "name": "check-error", - "version": "1.0.2", - "dependencies": [] - }, - "color-convert@2.0.1": { - "name": "color-convert", - "version": "2.0.1", - "dependencies": [ - "color-name@1.1.4" - ] - }, - "color-name@1.1.4": { - "name": "color-name", - "version": "1.1.4", - "dependencies": [] - }, - "deep-eql@3.0.1": { - "name": "deep-eql", - "version": "3.0.1", - "dependencies": [ - "type-detect@4.0.8" - ] - }, - "get-func-name@2.0.0": { - "name": "get-func-name", - "version": "2.0.0", - "dependencies": [] - }, - "has-flag@4.0.0": { - "name": "has-flag", - "version": "4.0.0", - "dependencies": [] - }, - "loupe@2.3.4": { - "name": "loupe", - "version": "2.3.4", - "dependencies": [ - "get-func-name@2.0.0" - ] - }, - "pathval@1.1.1": { - "name": "pathval", - "version": "1.1.1", - "dependencies": [] - }, - "supports-color@7.2.0": { - "name": "supports-color", - "version": "7.2.0", - "dependencies": [ - "has-flag@4.0.0" - ] - }, - "type-detect@4.0.8": { - "name": "type-detect", - "version": "4.0.8", - "dependencies": [] - } - } -} diff --git a/cli/tests/testdata/npm/cjs_with_deps/main_node_modules.out b/cli/tests/testdata/npm/cjs_with_deps/main_node_modules.out deleted file mode 100644 index 548f567f1..000000000 --- a/cli/tests/testdata/npm/cjs_with_deps/main_node_modules.out +++ /dev/null @@ -1,47 +0,0 @@ -[UNORDERED_START] -Download http://localhost:4545/npm/registry/chalk -Download http://localhost:4545/npm/registry/chai -Download http://localhost:4545/npm/registry/ansi-styles -Download http://localhost:4545/npm/registry/supports-color -Download http://localhost:4545/npm/registry/assertion-error -Download http://localhost:4545/npm/registry/check-error -Download http://localhost:4545/npm/registry/deep-eql -Download http://localhost:4545/npm/registry/get-func-name -Download http://localhost:4545/npm/registry/loupe -Download http://localhost:4545/npm/registry/pathval -Download http://localhost:4545/npm/registry/type-detect -Download http://localhost:4545/npm/registry/color-convert -Download http://localhost:4545/npm/registry/has-flag -Download http://localhost:4545/npm/registry/color-name -[UNORDERED_END] -[UNORDERED_START] -Download http://localhost:4545/npm/registry/ansi-styles/ansi-styles-4.3.0.tgz -Initialize ansi-styles@4.3.0 -Download http://localhost:4545/npm/registry/assertion-error/assertion-error-1.1.0.tgz -Initialize assertion-error@1.1.0 -Download http://localhost:4545/npm/registry/chai/chai-4.3.6.tgz -Initialize chai@4.3.6 -Download http://localhost:4545/npm/registry/chalk/chalk-4.1.2.tgz -Initialize chalk@4.1.2 -Download http://localhost:4545/npm/registry/check-error/check-error-1.0.2.tgz -Initialize check-error@1.0.2 -Download http://localhost:4545/npm/registry/color-convert/color-convert-2.0.1.tgz -Initialize color-convert@2.0.1 -Download http://localhost:4545/npm/registry/color-name/color-name-1.1.4.tgz -Initialize color-name@1.1.4 -Download http://localhost:4545/npm/registry/deep-eql/deep-eql-3.0.1.tgz -Initialize deep-eql@3.0.1 -Download http://localhost:4545/npm/registry/get-func-name/get-func-name-2.0.0.tgz -Initialize get-func-name@2.0.0 -Download http://localhost:4545/npm/registry/has-flag/has-flag-4.0.0.tgz -Initialize has-flag@4.0.0 -Download http://localhost:4545/npm/registry/loupe/loupe-2.3.4.tgz -Initialize loupe@2.3.4 -Download http://localhost:4545/npm/registry/pathval/pathval-1.1.1.tgz -Initialize pathval@1.1.1 -Download http://localhost:4545/npm/registry/supports-color/supports-color-7.2.0.tgz -Initialize supports-color@7.2.0 -Download http://localhost:4545/npm/registry/type-detect/type-detect-4.0.8.tgz -Initialize type-detect@4.0.8 -[UNORDERED_END] -chalk cjs loads |