mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-04 02:39:32 +00:00
Update Node.js, vscode, and ts deps
This commit is contained in:
parent
2fa819c9d3
commit
00726cf697
29 changed files with 2715 additions and 1857 deletions
|
@ -1,6 +1,7 @@
|
|||
import * as assert from "node:assert/strict";
|
||||
import { readdir } from "fs/promises";
|
||||
import * as path from "path";
|
||||
import { pathToFileURL } from "url";
|
||||
|
||||
class Test {
|
||||
readonly name: string;
|
||||
|
@ -67,7 +68,7 @@ export async function run(): Promise<void> {
|
|||
);
|
||||
for (const testFile of testFiles) {
|
||||
try {
|
||||
const testModule = require(path.resolve(__dirname, testFile));
|
||||
const testModule = await import(pathToFileURL(path.resolve(__dirname, testFile)).href);
|
||||
await testModule.getTests(context);
|
||||
} catch (e) {
|
||||
error(`${e}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue