mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-03 18:29:23 +00:00
prettier run
This commit is contained in:
parent
8e9f54f238
commit
f247090558
24 changed files with 1169 additions and 808 deletions
|
@ -1,5 +1,5 @@
|
|||
import { readdir } from 'fs/promises';
|
||||
import * as path from 'path';
|
||||
import { readdir } from "fs/promises";
|
||||
import * as path from "path";
|
||||
|
||||
class Test {
|
||||
readonly name: string;
|
||||
|
@ -59,7 +59,9 @@ export class Context {
|
|||
export async function run(): Promise<void> {
|
||||
const context = new Context();
|
||||
|
||||
const testFiles = (await readdir(path.resolve(__dirname))).filter(name => name.endsWith('.test.js'));
|
||||
const testFiles = (await readdir(path.resolve(__dirname))).filter((name) =>
|
||||
name.endsWith(".test.js")
|
||||
);
|
||||
for (const testFile of testFiles) {
|
||||
try {
|
||||
const testModule = require(path.resolve(__dirname, testFile));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue