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:
Bartek Iwańczuk 2024-09-16 14:39:58 +01:00 committed by GitHub
parent 8fa92228bb
commit 968f441da3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
67 changed files with 309 additions and 106 deletions

View 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();