Skip to content

Commit

Permalink
Merge pull request #21 from fac28/jestFix
Browse files Browse the repository at this point in the history
Jest fix
  • Loading branch information
dylancobb authored Oct 24, 2023
2 parents 84c25ff + dd2760e commit c976892
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions __tests__/check.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function greet() {
return 'ciao'
}

test('Greeting message', () => {
expect(greet()).toBe('ciao') // Use () after greet and add .toBe('ciao')
})
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ primary_region = "lhr"
[build]

[env]
DATABASE_PATH = "/data/mydb.sqlite"
DB_FILE = "/data/db.sqlite"

[mounts]
source="art_vandelay_data"
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "next build",
"start": "next start",
"seed": "DB_FILE=db.sqlite node app/_lib/database/seed.js",
"seed fly": "DB_FILE=/data/db.sqlite node app/_lib/database/seed.js",
"test": "jest --watch",
"test:e2e": "playwright test",
"lint": "next lint",
Expand All @@ -28,6 +29,8 @@
"eslint": "^8",
"eslint-config-next": "13.5.6",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"postcss": "^8",
"prettier": "^3.0.3",
"tailwindcss": "^3"
Expand Down

0 comments on commit c976892

Please sign in to comment.