mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
chore: deprecate run itests (#26444)
This commit is contained in:
parent
f9a05068d6
commit
89f0b796bd
1656 changed files with 7496 additions and 1936 deletions
|
@ -65,7 +65,11 @@
|
||||||
"tests/wpt/runner/expectation.json",
|
"tests/wpt/runner/expectation.json",
|
||||||
"tests/wpt/runner/manifest.json",
|
"tests/wpt/runner/manifest.json",
|
||||||
"tests/wpt/suite",
|
"tests/wpt/suite",
|
||||||
"third_party"
|
"third_party",
|
||||||
|
"tests/specs/run/shebang_with_json_imports_tsc",
|
||||||
|
"tests/specs/run/shebang_with_json_imports_swc",
|
||||||
|
"tests/specs/run/ext_flag_takes_precedence_over_extension",
|
||||||
|
"tests/specs/run/error_syntax_empty_trailing_line/error_syntax_empty_trailing_line.mjs"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"https://plugins.dprint.dev/typescript-0.93.2.wasm",
|
"https://plugins.dprint.dev/typescript-0.93.2.wasm",
|
||||||
|
|
File diff suppressed because it is too large
Load diff
1
tests/specs/run/_001_hello/001_hello.js
Normal file
1
tests/specs/run/_001_hello/001_hello.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
console.log("Hello World");
|
4
tests/specs/run/_001_hello/__test__.jsonc
Normal file
4
tests/specs/run/_001_hello/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --reload 001_hello.js",
|
||||||
|
"output": "001_hello.js.out"
|
||||||
|
}
|
1
tests/specs/run/_002_hello/002_hello.ts
Normal file
1
tests/specs/run/_002_hello/002_hello.ts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
console.log("Hello World");
|
4
tests/specs/run/_002_hello/__test__.jsonc
Normal file
4
tests/specs/run/_002_hello/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload 002_hello.ts",
|
||||||
|
"output": "002_hello.ts.out"
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
import { printHello } from "./print_hello.ts";
|
||||||
|
|
||||||
|
printHello();
|
4
tests/specs/run/_003_relative_import/__test__.jsonc
Normal file
4
tests/specs/run/_003_relative_import/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload 003_relative_import.ts",
|
||||||
|
"output": "003_relative_import.ts.out"
|
||||||
|
}
|
3
tests/specs/run/_003_relative_import/print_hello.ts
Normal file
3
tests/specs/run/_003_relative_import/print_hello.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export function printHello() {
|
||||||
|
console.log("Hello");
|
||||||
|
}
|
4
tests/specs/run/_004_set_timeout/__test__.jsonc
Normal file
4
tests/specs/run/_004_set_timeout/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload 004_set_timeout.ts",
|
||||||
|
"output": "004_set_timeout.ts.out"
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
import { printHello3, returnsFoo2, returnsHi } from "../subdir/mod1.ts";
|
import { printHello3, returnsFoo2, returnsHi } from "./mod1.ts";
|
||||||
|
|
||||||
printHello3();
|
printHello3();
|
||||||
|
|
4
tests/specs/run/_005_more_imports/__test__.jsonc
Normal file
4
tests/specs/run/_005_more_imports/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload 005_more_imports.ts",
|
||||||
|
"output": "005_more_imports.ts.out"
|
||||||
|
}
|
17
tests/specs/run/_005_more_imports/mod1.ts
Normal file
17
tests/specs/run/_005_more_imports/mod1.ts
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import { printHello2, returnsFoo } from "./subdir2/mod2.ts";
|
||||||
|
|
||||||
|
export function returnsHi(): string {
|
||||||
|
return "Hi";
|
||||||
|
}
|
||||||
|
|
||||||
|
export function returnsFoo2(): string {
|
||||||
|
return returnsFoo();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function printHello3() {
|
||||||
|
printHello2();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function throwsError() {
|
||||||
|
throw Error("exception from mod1");
|
||||||
|
}
|
3
tests/specs/run/_005_more_imports/print_hello.ts
Normal file
3
tests/specs/run/_005_more_imports/print_hello.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export function printHello() {
|
||||||
|
console.log("Hello");
|
||||||
|
}
|
9
tests/specs/run/_005_more_imports/subdir2/mod2.ts
Normal file
9
tests/specs/run/_005_more_imports/subdir2/mod2.ts
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import { printHello } from "../print_hello.ts";
|
||||||
|
|
||||||
|
export function returnsFoo(): string {
|
||||||
|
return "Foo";
|
||||||
|
}
|
||||||
|
|
||||||
|
export function printHello2() {
|
||||||
|
printHello();
|
||||||
|
}
|
3
tests/specs/run/_006_url_imports/006_url_imports.ts
Normal file
3
tests/specs/run/_006_url_imports/006_url_imports.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import { printHello } from "http://localhost:4545/subdir/mod2.ts";
|
||||||
|
printHello();
|
||||||
|
console.log("success");
|
2
tests/specs/run/_006_url_imports/006_url_imports.ts.out
Normal file
2
tests/specs/run/_006_url_imports/006_url_imports.ts.out
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Hello
|
||||||
|
success
|
4
tests/specs/run/_006_url_imports/__test__.jsonc
Normal file
4
tests/specs/run/_006_url_imports/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload --allow-import 006_url_imports.ts",
|
||||||
|
"output": "006_url_imports.ts.out"
|
||||||
|
}
|
3
tests/specs/run/_006_url_imports/print_hello.ts
Normal file
3
tests/specs/run/_006_url_imports/print_hello.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export function printHello() {
|
||||||
|
console.log("Hello");
|
||||||
|
}
|
9
tests/specs/run/_006_url_imports/subdir2/mod2.ts
Normal file
9
tests/specs/run/_006_url_imports/subdir2/mod2.ts
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import { printHello } from "../print_hello.ts";
|
||||||
|
|
||||||
|
export function returnsFoo(): string {
|
||||||
|
return "Foo";
|
||||||
|
}
|
||||||
|
|
||||||
|
export function printHello2() {
|
||||||
|
printHello();
|
||||||
|
}
|
4
tests/specs/run/_012_async/__test__.jsonc
Normal file
4
tests/specs/run/_012_async/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload 012_async.ts",
|
||||||
|
"output": "012_async.ts.out"
|
||||||
|
}
|
15
tests/specs/run/_013_dynamic_import/013_dynamic_import.ts
Normal file
15
tests/specs/run/_013_dynamic_import/013_dynamic_import.ts
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
(async () => {
|
||||||
|
const { returnsHi, returnsFoo2, printHello3 } = await import(
|
||||||
|
"./mod1.ts"
|
||||||
|
);
|
||||||
|
|
||||||
|
printHello3();
|
||||||
|
|
||||||
|
if (returnsHi() !== "Hi") {
|
||||||
|
throw Error("Unexpected");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (returnsFoo2() !== "Foo") {
|
||||||
|
throw Error("Unexpected");
|
||||||
|
}
|
||||||
|
})();
|
4
tests/specs/run/_013_dynamic_import/__test__.jsonc
Normal file
4
tests/specs/run/_013_dynamic_import/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload --allow-read 013_dynamic_import.ts",
|
||||||
|
"output": "013_dynamic_import.ts.out"
|
||||||
|
}
|
17
tests/specs/run/_013_dynamic_import/mod1.ts
Normal file
17
tests/specs/run/_013_dynamic_import/mod1.ts
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import { printHello2, returnsFoo } from "./subdir2/mod2.ts";
|
||||||
|
|
||||||
|
export function returnsHi(): string {
|
||||||
|
return "Hi";
|
||||||
|
}
|
||||||
|
|
||||||
|
export function returnsFoo2(): string {
|
||||||
|
return returnsFoo();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function printHello3() {
|
||||||
|
printHello2();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function throwsError() {
|
||||||
|
throw Error("exception from mod1");
|
||||||
|
}
|
3
tests/specs/run/_013_dynamic_import/print_hello.ts
Normal file
3
tests/specs/run/_013_dynamic_import/print_hello.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export function printHello() {
|
||||||
|
console.log("Hello");
|
||||||
|
}
|
9
tests/specs/run/_013_dynamic_import/subdir2/mod2.ts
Normal file
9
tests/specs/run/_013_dynamic_import/subdir2/mod2.ts
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import { printHello } from "../print_hello.ts";
|
||||||
|
|
||||||
|
export function returnsFoo(): string {
|
||||||
|
return "Foo";
|
||||||
|
}
|
||||||
|
|
||||||
|
export function printHello2() {
|
||||||
|
printHello();
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
// with all the imports of the same module, the module should only be
|
||||||
|
// instantiated once
|
||||||
|
import "./auto_print_hello.ts";
|
||||||
|
|
||||||
|
import "./auto_print_hello.ts";
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
await import("./auto_print_hello.ts");
|
||||||
|
})();
|
4
tests/specs/run/_014_duplicate_import/__test__.jsonc
Normal file
4
tests/specs/run/_014_duplicate_import/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload --allow-read 014_duplicate_import.ts ",
|
||||||
|
"output": "014_duplicate_import.ts.out"
|
||||||
|
}
|
|
@ -0,0 +1,2 @@
|
||||||
|
console.log("hello!");
|
||||||
|
export default {};
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
const promises = new Array(100)
|
const promises = new Array(100)
|
||||||
.fill(null)
|
.fill(null)
|
||||||
.map(() => import("../subdir/mod1.ts"));
|
.map(() => import("./mod1.ts"));
|
||||||
|
|
||||||
Promise.all(promises).then((imports) => {
|
Promise.all(promises).then((imports) => {
|
||||||
const mod = imports.reduce((first, cur) => {
|
const mod = imports.reduce((first, cur) => {
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload --allow-read 015_duplicate_parallel_import.js",
|
||||||
|
"output": "015_duplicate_parallel_import.js.out"
|
||||||
|
}
|
17
tests/specs/run/_015_duplicate_parallel_import/mod1.ts
Normal file
17
tests/specs/run/_015_duplicate_parallel_import/mod1.ts
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import { printHello2, returnsFoo } from "./subdir2/mod2.ts";
|
||||||
|
|
||||||
|
export function returnsHi(): string {
|
||||||
|
return "Hi";
|
||||||
|
}
|
||||||
|
|
||||||
|
export function returnsFoo2(): string {
|
||||||
|
return returnsFoo();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function printHello3() {
|
||||||
|
printHello2();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function throwsError() {
|
||||||
|
throw Error("exception from mod1");
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
export function printHello() {
|
||||||
|
console.log("Hello");
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { printHello } from "../print_hello.ts";
|
||||||
|
|
||||||
|
export function returnsFoo(): string {
|
||||||
|
return "Foo";
|
||||||
|
}
|
||||||
|
|
||||||
|
export function printHello2() {
|
||||||
|
printHello();
|
||||||
|
}
|
4
tests/specs/run/_016_double_await/__test__.jsonc
Normal file
4
tests/specs/run/_016_double_await/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --allow-read --reload 016_double_await.ts",
|
||||||
|
"output": "016_double_await.ts.out"
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
// http -> https redirect would happen:
|
||||||
|
import { printHello } from "http://gist.githubusercontent.com/ry/f12b2aa3409e6b52645bc346a9e22929/raw/79318f239f51d764384a8bded8d7c6a833610dde/print_hello.ts";
|
||||||
|
|
||||||
|
printHello();
|
4
tests/specs/run/_017_import_redirect/__test__.jsonc
Normal file
4
tests/specs/run/_017_import_redirect/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --allow-import --reload --check 017_import_redirect.ts",
|
||||||
|
"output": "017_import_redirect.ts.out"
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
// http -> https redirect would happen:
|
||||||
|
import { printHello } from "http://gist.githubusercontent.com/ry/f12b2aa3409e6b52645bc346a9e22929/raw/79318f239f51d764384a8bded8d7c6a833610dde/print_hello.ts";
|
||||||
|
|
||||||
|
printHello();
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --allow-import --reload --check 017_import_redirect.ts",
|
||||||
|
"output": "017_import_redirect.ts.out"
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
// http -> https redirect would happen:
|
||||||
|
import { printHello } from "http://gist.githubusercontent.com/ry/f12b2aa3409e6b52645bc346a9e22929/raw/79318f239f51d764384a8bded8d7c6a833610dde/print_hello.ts";
|
||||||
|
|
||||||
|
printHello();
|
4
tests/specs/run/_017_import_redirect_info/__test__.jsonc
Normal file
4
tests/specs/run/_017_import_redirect_info/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "info --quiet --allow-import --reload 017_import_redirect.ts",
|
||||||
|
"output": "017_import_redirect_info.out"
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
// http -> https redirect would happen:
|
||||||
|
import { printHello } from "http://gist.githubusercontent.com/ry/f12b2aa3409e6b52645bc346a9e22929/raw/79318f239f51d764384a8bded8d7c6a833610dde/print_hello.ts";
|
||||||
|
|
||||||
|
printHello();
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --allow-import --reload --check 017_import_redirect.ts",
|
||||||
|
"output": "017_import_redirect.ts.out"
|
||||||
|
}
|
4
tests/specs/run/_018_async_catch/__test__.jsonc
Normal file
4
tests/specs/run/_018_async_catch/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload 018_async_catch.ts",
|
||||||
|
"output": "018_async_catch.ts.out"
|
||||||
|
}
|
24
tests/specs/run/_019_media_types/019_media_types.ts
Normal file
24
tests/specs/run/_019_media_types/019_media_types.ts
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
// When run against the test HTTP server, it will serve different media types
|
||||||
|
// based on the URL containing `.t#.` strings, which exercises the different
|
||||||
|
// mapping of media types end to end.
|
||||||
|
|
||||||
|
import { loaded as loadedTs1 } from "http://localhost:4545/subdir/mt_text_typescript.t1.ts";
|
||||||
|
import { loaded as loadedTs2 } from "http://localhost:4545/subdir/mt_video_vdn.t2.ts";
|
||||||
|
import { loaded as loadedTs3 } from "http://localhost:4545/subdir/mt_video_mp2t.t3.ts";
|
||||||
|
import { loaded as loadedTs4 } from "http://localhost:4545/subdir/mt_application_x_typescript.t4.ts";
|
||||||
|
import { loaded as loadedJs1 } from "http://localhost:4545/subdir/mt_text_javascript.j1.js";
|
||||||
|
import { loaded as loadedJs2 } from "http://localhost:4545/subdir/mt_application_ecmascript.j2.js";
|
||||||
|
import { loaded as loadedJs3 } from "http://localhost:4545/subdir/mt_text_ecmascript.j3.js";
|
||||||
|
import { loaded as loadedJs4 } from "http://localhost:4545/subdir/mt_application_x_javascript.j4.js";
|
||||||
|
|
||||||
|
console.log(
|
||||||
|
"success",
|
||||||
|
loadedTs1,
|
||||||
|
loadedTs2,
|
||||||
|
loadedTs3,
|
||||||
|
loadedTs4,
|
||||||
|
loadedJs1,
|
||||||
|
loadedJs2,
|
||||||
|
loadedJs3,
|
||||||
|
loadedJs4,
|
||||||
|
);
|
4
tests/specs/run/_019_media_types/__test__.jsonc
Normal file
4
tests/specs/run/_019_media_types/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --reload --allow-import 019_media_types.ts",
|
||||||
|
"output": "019_media_types.ts.out"
|
||||||
|
}
|
2
tests/specs/run/_020_json_modules/020_json_modules.ts
Normal file
2
tests/specs/run/_020_json_modules/020_json_modules.ts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
import config from "./config.json";
|
||||||
|
console.log(JSON.stringify(config));
|
|
@ -1,3 +1,3 @@
|
||||||
error: Expected a JavaScript or TypeScript module, but identified a Json module. Consider importing Json modules with an import attribute with the type of "json".
|
error: Expected a JavaScript or TypeScript module, but identified a Json module. Consider importing Json modules with an import attribute with the type of "json".
|
||||||
Specifier: [WILDCARD]/subdir/config.json
|
Specifier: [WILDCARD]/config.json
|
||||||
[WILDCARD]
|
[WILDCARD]
|
5
tests/specs/run/_020_json_modules/__test__.jsonc
Normal file
5
tests/specs/run/_020_json_modules/__test__.jsonc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"args": "run --reload 020_json_modules.ts",
|
||||||
|
"output": "020_json_modules.ts.out",
|
||||||
|
"exitCode": 1
|
||||||
|
}
|
6
tests/specs/run/_020_json_modules/config.json
Normal file
6
tests/specs/run/_020_json_modules/config.json
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"foo": {
|
||||||
|
"bar": true,
|
||||||
|
"baz": ["qat", 1]
|
||||||
|
}
|
||||||
|
}
|
2
tests/specs/run/_021_mjs_modules/021_mjs_modules.ts
Normal file
2
tests/specs/run/_021_mjs_modules/021_mjs_modules.ts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
import { isMod5 } from "./mod5.mjs";
|
||||||
|
console.log(isMod5);
|
4
tests/specs/run/_021_mjs_modules/__test__.jsonc
Normal file
4
tests/specs/run/_021_mjs_modules/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload 021_mjs_modules.ts",
|
||||||
|
"output": "021_mjs_modules.ts.out"
|
||||||
|
}
|
1
tests/specs/run/_021_mjs_modules/mod5.mjs
Normal file
1
tests/specs/run/_021_mjs_modules/mod5.mjs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export const isMod5 = true;
|
4
tests/specs/run/_025_reload_js_type_error/__test__.jsonc
Normal file
4
tests/specs/run/_025_reload_js_type_error/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload 025_reload_js_type_error.js",
|
||||||
|
"output": "025_reload_js_type_error.js.out"
|
||||||
|
}
|
4
tests/specs/run/_027_redirect_typescript/__test__.jsonc
Normal file
4
tests/specs/run/_027_redirect_typescript/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload --allow-import 027_redirect_typescript.ts",
|
||||||
|
"output": "027_redirect_typescript.ts.out"
|
||||||
|
}
|
|
@ -0,0 +1,2 @@
|
||||||
|
import { value } from "http://localhost:4547/redirects/redirect4.ts";
|
||||||
|
console.log(value);
|
|
@ -0,0 +1 @@
|
||||||
|
4 imports 1
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload --vendor --allow-import 027_redirect_typescript.ts",
|
||||||
|
"output": "027_redirect_typescript.ts.out"
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
export const redirect = 1;
|
|
@ -0,0 +1,2 @@
|
||||||
|
import { redirect } from "./redirect1.ts";
|
||||||
|
export const value = `4 imports ${redirect}`;
|
9
tests/specs/run/_027_redirect_typescript_vendor_dir/vendor/manifest.json
vendored
Normal file
9
tests/specs/run/_027_redirect_typescript_vendor_dir/vendor/manifest.json
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"modules": {
|
||||||
|
"http://localhost:4547/redirects/redirect4.ts": {
|
||||||
|
"headers": {
|
||||||
|
"location": "http://localhost:4545/subdir/redirects/redirect4.ts"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
4
tests/specs/run/_028_args/__test__.jsonc
Normal file
4
tests/specs/run/_028_args/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload 028_args.ts --arg1 val1 --arg2=val2 -- arg3 arg4",
|
||||||
|
"output": "028_args.ts.out"
|
||||||
|
}
|
4
tests/specs/run/_033_import_map_data_uri/__test__.jsonc
Normal file
4
tests/specs/run/_033_import_map_data_uri/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload --allow-import --import-map=data:application/json;charset=utf-8;base64,ewogICJpbXBvcnRzIjogewogICAgInRlc3Rfc2VydmVyLyI6ICJodHRwOi8vbG9jYWxob3N0OjQ1NDUvIgogIH0KfQ== test_data.ts",
|
||||||
|
"output": "test_data.ts.out"
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
console.log("Hello from remapped lodash!");
|
|
@ -0,0 +1 @@
|
||||||
|
console.log("Hello from remapped lodash dir!");
|
4
tests/specs/run/_033_import_map_remote/__test__.jsonc
Normal file
4
tests/specs/run/_033_import_map_remote/__test__.jsonc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"args": "run --quiet --reload --allow-import --import-map=import_map_remote.json test_remote.ts",
|
||||||
|
"output": "033_import_map_remote.out"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"imports": {
|
||||||
|
"moment": "./moment/moment.ts",
|
||||||
|
"moment/": "./moment/",
|
||||||
|
"lodash": "./lodash/lodash.ts",
|
||||||
|
"lodash/": "./lodash/",
|
||||||
|
"https://www.unpkg.com/vue/dist/vue.runtime.esm.js": "./vue.ts",
|
||||||
|
"print_hello": "./print_hello.ts"
|
||||||
|
}
|
||||||
|
}
|
1
tests/specs/run/_033_import_map_remote/lodash/lodash.ts
Normal file
1
tests/specs/run/_033_import_map_remote/lodash/lodash.ts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
console.log("Hello from remapped lodash!");
|
|
@ -0,0 +1 @@
|
||||||
|
console.log("Hello from remapped lodash dir!");
|
1
tests/specs/run/_033_import_map_remote/moment/moment.ts
Normal file
1
tests/specs/run/_033_import_map_remote/moment/moment.ts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
console.log("Hello from remapped moment!");
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue