mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
test: rewrite some ignored tests to spec tests (#25652)
Ref https://github.com/denoland/deno/issues/25241 Rewritten these tests: - check::package_json_basic - check::package_json_fail_check - check::package_json_with_deno_json - info::package_json_basic - test::package_json_basic - run::package_json_auto_discovered_for_npm_binary - run::package_json_with_deno_json
This commit is contained in:
parent
8fa92228bb
commit
968f441da3
67 changed files with 309 additions and 106 deletions
9
tests/specs/check/package_json_with_deno_json/main.ts
Normal file
9
tests/specs/check/package_json_with_deno_json/main.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { NUMBER_VALUE } from "other";
|
||||
import * as test from "@denotest/esm-basic";
|
||||
|
||||
test.setValue(2);
|
||||
console.log(test.getValue());
|
||||
|
||||
// these should cause type errors
|
||||
const _strValue1: string = NUMBER_VALUE;
|
||||
const _strValue2: string = test.getValue();
|
Loading…
Add table
Add a link
Reference in a new issue