@systemfsoftware/stryker-js-typescript-checker 0.1.0
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/.turbo/turbo-build.log +15 -0
- package/.turbo/turbo-lint.log +3 -0
- package/LICENSE +21 -0
- package/dist/index.d.mts +122 -0
- package/dist/index.mjs +602 -0
- package/oxlint.config.ts +9 -0
- package/package.json +37 -0
- package/schema/typescript-checker-options.json +22 -0
- package/src/fs/hybrid-file-system.ts +118 -0
- package/src/fs/index.ts +2 -0
- package/src/fs/script-file.ts +44 -0
- package/src/grouping/create-groups.ts +77 -0
- package/src/grouping/ts-file-node.ts +54 -0
- package/src/index.ts +18 -0
- package/src/plugin-tokens.ts +2 -0
- package/src/tsconfig-helpers.ts +168 -0
- package/src/typescript-checker-options-with-stryker-options.ts +9 -0
- package/src/typescript-checker.ts +223 -0
- package/src/typescript-compiler.ts +406 -0
- package/test/integration/e2e-plugin-entry.it.spec.ts +153 -0
- package/test/integration/project-references.it.spec.ts +146 -0
- package/test/integration/project-with-ts-buildinfo.it.spec.ts +92 -0
- package/test/integration/single-project.it.spec.ts +263 -0
- package/test/integration/typescript-checkers-errors.it.spec.ts +87 -0
- package/test/unit/fs/hybrid-file-system.spec.ts +109 -0
- package/test/unit/grouping/create-groups.spec.ts +122 -0
- package/test/unit/grouping/ts-file-node.spec.ts +132 -0
- package/testResources/errors/compile-error/add.ts +3 -0
- package/testResources/errors/compile-error/tsconfig.json +6 -0
- package/testResources/errors/empty-dir/.gitkeep +0 -0
- package/testResources/errors/invalid-tsconfig/tsconfig.json +1 -0
- package/testResources/project-references/src/index.ts +5 -0
- package/testResources/project-references/src/job.ts +6 -0
- package/testResources/project-references/src/src.tsbuildinfo +1 -0
- package/testResources/project-references/src/tsconfig.json +10 -0
- package/testResources/project-references/tsconfig.root.json +7 -0
- package/testResources/project-references/tsconfig.settings.json +17 -0
- package/testResources/project-references/utils/math.ts +3 -0
- package/testResources/project-references/utils/text.ts +3 -0
- package/testResources/project-references/utils/tsconfig.json +7 -0
- package/testResources/project-references/utils/utils.tsbuildinfo +1 -0
- package/testResources/project-with-ts-buildinfo/do-not-delete.tsbuildinfo +1 -0
- package/testResources/project-with-ts-buildinfo/src/index.ts +3 -0
- package/testResources/project-with-ts-buildinfo/tsconfig.json +17 -0
- package/testResources/single-project/src/counter.ts +9 -0
- package/testResources/single-project/src/errorInFileAbove2Mutants/counter.ts +9 -0
- package/testResources/single-project/src/errorInFileAbove2Mutants/todo-counter.ts +7 -0
- package/testResources/single-project/src/errorInFileAbove2Mutants/todo.spec.ts +11 -0
- package/testResources/single-project/src/errorInFileAbove2Mutants/todo.ts +22 -0
- package/testResources/single-project/src/not-type-checked.js +1 -0
- package/testResources/single-project/src/todo.spec.ts +11 -0
- package/testResources/single-project/src/todo.ts +22 -0
- package/testResources/single-project/tsconfig.json +15 -0
- package/tsconfig.json +10 -0
- package/vitest.config.ts +11 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ITodo {
|
|
2
|
+
name: string
|
|
3
|
+
description: string
|
|
4
|
+
completed: boolean
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
class Todo implements ITodo {
|
|
8
|
+
constructor(public name: string, public description: string, public completed: boolean) {}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class TodoList {
|
|
12
|
+
public static allTodos: Todo[] = []
|
|
13
|
+
createTodoItem(name: string, description: string) {
|
|
14
|
+
let newItem = new Todo(name, description, false)
|
|
15
|
+
let totalCount: number = TodoList.allTodos.push(newItem)
|
|
16
|
+
return totalCount
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
allTodoItems(): ITodo[] {
|
|
20
|
+
return TodoList.allTodos
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"strict": true,
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"module": "commonjs",
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
|
|
9
|
+
// These settings should be overridden by the typescript checker
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
"noUnusedParameters": true,
|
|
12
|
+
|
|
13
|
+
"types": []
|
|
14
|
+
}
|
|
15
|
+
}
|
package/tsconfig.json
ADDED