mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
chore(specs): add jsr and npm env vars to tests by default (#23171)
This commit is contained in:
parent
858abbe745
commit
ca5e5c7e9c
16 changed files with 8 additions and 25 deletions
|
@ -7,7 +7,7 @@ benchmark time (avg) iter/s (min … max) p75
|
||||||
--------------------------------------------------------------- -----------------------------
|
--------------------------------------------------------------- -----------------------------
|
||||||
|
|
||||||
group G1
|
group G1
|
||||||
G1-B [WILDCARD]
|
G1-B [WILDCARD]
|
||||||
|
|
||||||
group G2
|
group G2
|
||||||
G2-B [WILDCARD]
|
G2-B [WILDCARD]
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "npm",
|
|
||||||
"args": "check main.ts",
|
"args": "check main.ts",
|
||||||
"output": "main.out",
|
"output": "main.out",
|
||||||
"exitCode": 1
|
"exitCode": 1
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "jsr",
|
|
||||||
"steps": [{
|
"steps": [{
|
||||||
"args": "run main.ts",
|
"args": "run main.ts",
|
||||||
"output": "main.out"
|
"output": "main.out"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "jsr",
|
|
||||||
"steps": [{
|
"steps": [{
|
||||||
"args": "run -A analyzable.ts",
|
"args": "run -A analyzable.ts",
|
||||||
"output": "analyzable.out",
|
"output": "analyzable.out",
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "jsr",
|
|
||||||
"args": "run main.ts",
|
"args": "run main.ts",
|
||||||
"output": "main.out",
|
"output": "main.out",
|
||||||
"exitCode": 1
|
"exitCode": 1
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "jsr",
|
|
||||||
"args": "run main.ts",
|
"args": "run main.ts",
|
||||||
"output": "main.out"
|
"output": "main.out"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "jsr",
|
|
||||||
"steps": [{
|
"steps": [{
|
||||||
"args": "run main.ts",
|
"args": "run main.ts",
|
||||||
"output": "main.out"
|
"output": "main.out"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "jsr",
|
|
||||||
"steps": [{
|
"steps": [{
|
||||||
"args": "run main.ts",
|
"args": "run main.ts",
|
||||||
"output": "main.out"
|
"output": "main.out"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "jsr",
|
|
||||||
"steps": [{
|
"steps": [{
|
||||||
"args": "check --all main.ts",
|
"args": "check --all main.ts",
|
||||||
"output": "main.out"
|
"output": "main.out"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "jsr",
|
|
||||||
"args": "check --all main.ts",
|
"args": "check --all main.ts",
|
||||||
"output": "main.check.out",
|
"output": "main.check.out",
|
||||||
"exitCode": 1
|
"exitCode": 1
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "jsr",
|
|
||||||
"args": "run -A main.ts",
|
"args": "run -A main.ts",
|
||||||
"output": "main.out",
|
"output": "main.out",
|
||||||
"exitCode": 1
|
"exitCode": 1
|
||||||
|
|
|
@ -101,15 +101,12 @@ fn run_test(test: &Test, diagnostic_logger: Rc<RefCell<Vec<u8>>>) {
|
||||||
builder = builder.cwd(cwd.to_string_lossy());
|
builder = builder.cwd(cwd.to_string_lossy());
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(base) = &metadata.base {
|
match &metadata.base {
|
||||||
match base.as_str() {
|
// todo(dsherret): add bases in the future as needed
|
||||||
"npm" => {
|
Some(base) => panic!("Unknown test base: {}", base),
|
||||||
builder = builder.add_npm_env_vars();
|
None => {
|
||||||
}
|
// by default add npm and jsr env vars
|
||||||
"jsr" => {
|
builder = builder.add_jsr_env_vars().add_npm_env_vars();
|
||||||
builder = builder.add_jsr_env_vars().add_npm_env_vars();
|
|
||||||
}
|
|
||||||
_ => panic!("Unknown test base: {}", base),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "npm",
|
|
||||||
"args": "check --all main.ts",
|
"args": "check --all main.ts",
|
||||||
"output": "main.out"
|
"output": "main.out"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "npm",
|
|
||||||
"args": "run --allow-read main.js",
|
"args": "run --allow-read main.js",
|
||||||
"output": "main.out"
|
"output": "main.out"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "npm",
|
|
||||||
"tempDir": true,
|
"tempDir": true,
|
||||||
"args": "run --allow-read --node-modules-dir main.js",
|
"args": "run --allow-read --node-modules-dir main.js",
|
||||||
"output": "main.out"
|
"output": "main.out"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"base": "npm",
|
|
||||||
"steps": [{
|
"steps": [{
|
||||||
"args": "run --allow-read --allow-env main.js",
|
"args": "run --allow-read --allow-env main.js",
|
||||||
"output": "main.out"
|
"output": "main.out"
|
||||||
|
|
Loading…
Reference in a new issue