Skip to content

Commit aae36b6

Browse files
follow up for node:test pr (#2419)
* code * fix lint * use fs.globSync * update node version
1 parent 147efdd commit aae36b6

File tree

292 files changed

+1115
-2930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+1115
-2930
lines changed

.prettierignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
package.json
22
test/valid-data/**/*.json
3-
babel.config.cjs
4-
jest.config.cjs

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@
1313
"source.fixAll.eslint": "explicit"
1414
},
1515
"eslint.experimental.useFlatConfig": true,
16-
"jest.runMode": "on-demand",
1716
"javascript.preferences.importModuleSpecifierEnding": "js"
1817
}

babel.config.cjs

Lines changed: 0 additions & 3 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export default tseslint.config(
7171
files: ["test/**/*.test.ts"],
7272
languageOptions: {
7373
globals: {
74-
...globals.jest,
7574
...globals.commonjs,
7675
},
7776
},

factory/program.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { globSync } from "glob";
21
import * as path from "node:path";
32
import normalize from "normalize-path";
43
import type { CompilerOptions } from "typescript";
54
import ts from "typescript";
65
import type { CompletedConfig, Config } from "../src/Config.js";
76
import { BuildError } from "../src/Error/Errors.js";
7+
import fs from "node:fs";
88

99
function loadTsConfigFile(configFile: string) {
1010
const raw = ts.sys.readFile(configFile);
@@ -68,7 +68,7 @@ function getTsConfig(config: Config) {
6868

6969
export function createProgram(config: CompletedConfig): ts.Program {
7070
const rootNamesFromPath = config.path
71-
? globSync(normalize(path.resolve(config.path))).map((rootName) => normalize(rootName))
71+
? fs.globSync(normalize(path.resolve(config.path))).map((rootName) => normalize(rootName))
7272
: [];
7373
const tsconfig = getTsConfig(config);
7474
const rootNames = rootNamesFromPath.length ? rootNamesFromPath : tsconfig.fileNames;

jest.config.cjs

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)