-
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom error messages to extremely confusing assertions
- Loading branch information
1 parent
11ca6ef
commit 00b495a
Showing
4 changed files
with
75 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,11 @@ | ||
import {defineConfig} from "vitest/config"; | ||
import {defineConfig, mergeConfig} from "vitest/config"; | ||
import vitestConfig from "../../vitest.base.config"; | ||
|
||
export default defineConfig({ | ||
test: { | ||
globalSetup: ["./test/globalSetup.ts"], | ||
reporters: ["default", "hanging-process"], | ||
coverage: { | ||
clean: true, | ||
all: false, | ||
extension: [".ts"], | ||
provider: "v8", | ||
reporter: [["lcovonly", {file: "lcov.info"}], ["text"]], | ||
reportsDirectory: "./coverage", | ||
exclude: [ | ||
"**/*.d.ts", | ||
"**/*.js", | ||
"**/lib/**", | ||
"**/coverage/**", | ||
"**/scripts/**", | ||
"**/test/**", | ||
"**/types/**", | ||
"**/bin/**", | ||
"**/node_modules/**", | ||
], | ||
export default mergeConfig( | ||
vitestConfig, | ||
defineConfig({ | ||
test: { | ||
globalSetup: ["./test/globalSetup.ts"], | ||
}, | ||
}, | ||
}); | ||
}) | ||
); |