Skip to content

Commit

Permalink
NODE_ENV pls work I'm getting tired
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolovlazar committed Aug 27, 2024
1 parent 89064d5 commit 0eb4aa6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Test
on: [push]
jobs:
test:
env:
NODE_ENV: test

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 3 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"test": "NODE_ENV=test vitest",
"coverage": "NODE_ENV=test vitest run --coverage"
"test": "vitest",
"coverage": "vitest run --coverage"
},
"dependencies": {
"@libsql/client": "^0.9.0",
Expand All @@ -35,6 +35,7 @@
"sonner": "^1.5.0",
"tailwind-merge": "^2.4.0",
"tailwindcss-animate": "^1.0.7",
"vite-plugin-env-compatible": "^2.0.1",
"vitest": "^2.0.5",
"webpack": "^5.93.0",
"zod": "^3.23.8"
Expand All @@ -49,7 +50,6 @@
"eslint-config-next": "14.2.5",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5",
"vite-plugin-env-compatible": "^2.0.1"
"typescript": "^5"
}
}
3 changes: 0 additions & 3 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ export default defineConfig({
reportsDirectory: "./tests/coverage",
},
},
define: {
"process.env.NODE_ENV": JSON.stringify("test"),
},
plugins: [env()],
resolve: {
alias: {
Expand Down

0 comments on commit 0eb4aa6

Please sign in to comment.