Skip to content

Commit

Permalink
chore: stop using setupFiles in tests (#2944)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk authored Aug 16, 2024
1 parent 56018e3 commit 5727b17
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 39 deletions.
4 changes: 4 additions & 0 deletions .changeset/funny-pumas-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

chore: stop using `setupFiles` in tests
38 changes: 0 additions & 38 deletions vitest.env.ts

This file was deleted.

3 changes: 3 additions & 0 deletions vitest.global-setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function setup() {
process.env.FUEL_CORE_PATH = 'fuels-core';
}
2 changes: 1 addition & 1 deletion vitest.shared.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineConfig({
],
esbuild: { target: "es2022" },
test: {
globalSetup: ["vitest.global-setup.ts"],
coverage: {
enabled: true,
provider: "istanbul",
Expand All @@ -40,7 +41,6 @@ export default defineConfig({
"/apps/demo-react-vite",
],
globals: true,
setupFiles: ["./vitest.env.ts"],
env: loadEnv(mode, process.cwd(), ""),
poolOptions: {
threads: {
Expand Down

0 comments on commit 5727b17

Please sign in to comment.