@aljazmc/testero 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/types/testero.d.ts +1 -1
- package/package.json +2 -2
- package/bin/types/shared/config/config.d.ts +0 -31
- package/bin/types/shared/config/ignore.d.ts +0 -5
- package/bin/types/shared/config/includes.d.ts +0 -6
- package/bin/types/shared/config/index.d.ts +0 -4
- package/bin/types/shared/config/pattern.d.ts +0 -5
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Easy to understand, easy to customize and easy to extend.
|
|
|
12
12
|
npm install --save-dev @aljazmc/testero
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
testero needs Node.js 22.18 or later,
|
|
15
|
+
testero needs Node.js 22 (22.18 or later), 24 (24.2 or later), 25 or 26.
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
package/bin/types/testero.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aljazmc/testero",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A simple, Jest-like test runner for JavaScript, TypeScript and JSX, compiling tests with esbuild. Easy to understand, easy to customize and easy to extend.",
|
|
5
5
|
"author": "aljazmc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"./package.json": "./package.json"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@aljazmc/config": "0.2.0",
|
|
39
38
|
"@jest/globals": "^30.5.2",
|
|
40
39
|
"@types/node": "^26.6.5"
|
|
41
40
|
},
|
|
42
41
|
"dependencies": {
|
|
42
|
+
"@aljazmc/config": "^0.3.0",
|
|
43
43
|
"esbuild": "0.28.2"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import Ignore from "./ignore.js";
|
|
2
|
-
export interface Options<Rules extends object = object> {
|
|
3
|
-
ignore: string[];
|
|
4
|
-
rules: Rules;
|
|
5
|
-
}
|
|
6
|
-
/** A text file found by a tool, with its path relative to the root. */
|
|
7
|
-
export interface Source {
|
|
8
|
-
file: string;
|
|
9
|
-
path: string;
|
|
10
|
-
text: string;
|
|
11
|
-
}
|
|
12
|
-
export default class Config<Rules extends object = object> {
|
|
13
|
-
#private;
|
|
14
|
-
static readonly extensions: string[];
|
|
15
|
-
readonly root: string;
|
|
16
|
-
readonly ignore: Ignore;
|
|
17
|
-
readonly rules: Rules;
|
|
18
|
-
/** What the config file set, before the defaults were merged in. */
|
|
19
|
-
readonly custom: Partial<Options<Rules>>;
|
|
20
|
-
constructor(options: Options<Rules>, root?: string, custom?: Partial<Options<Rules>>);
|
|
21
|
-
static load<Rules extends object>(name: string, defaults: Options<Rules>, root?: string): Promise<Config<Rules>>;
|
|
22
|
-
/** Handles `--config`, writing the defaults to a TypeScript config file, or with `--config js` a JavaScript one. Returns whether it was given. */
|
|
23
|
-
static init(name: string, defaults: Options, argv?: string[], root?: string): boolean;
|
|
24
|
-
/** Writes the defaults to `<name>.config.<extension>` in the root, unless a config file is there already. */
|
|
25
|
-
static export(name: string, defaults: Options, extension?: string, root?: string): string;
|
|
26
|
-
/** Deep merges plain objects, anything else in override replaces base. */
|
|
27
|
-
static merge<T>(base: T, override: unknown): T;
|
|
28
|
-
files(directory?: string): Generator<string>;
|
|
29
|
-
/** Text files that are not ignored and that accepts takes, binaries are skipped. */
|
|
30
|
-
sources(accepts?: (file: string) => boolean): Generator<Source>;
|
|
31
|
-
}
|