Skip to content

Commit

Permalink
Moved e2e tests out of src to prevent shadow autorun.
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15m committed Feb 2, 2024
1 parent 65c5b20 commit 381106f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"docs": "nbb bin/generate-docs.cljs",
"pre-publish": "npm run sync-deps; nbb bin/update-readme-versions.cljs; npm run docs; echo Changes:; git log --oneline `git rev-list --tags --max-count=1`..; echo; echo 'Now commit changes and run `git tag vX.Y.Z`.'",
"test": "rm -f ./tests.sqlite; SECRET=testing TESTING=1 DATABASE_URL=sqlite://./tests.sqlite npx shadow-cljs compile test",
"test-e2e": "nbb --classpath src src/sitefox/e2etests/nbbauth.cljs",
"test-e2e": "nbb --classpath src src-tests/e2etests.cljs",
"watch": "SECRET=watching TESTING=1 shadow-cljs watch test"
}
}
4 changes: 2 additions & 2 deletions src/sitefox/e2etests/nbbauth.cljs → src-tests/e2etests.cljs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns sitefox.e2etests.nbbauth
(ns e2etests
(:require
[clojure.test :as t :refer [deftest is async]]
[clojure.string :refer [includes?]]
Expand Down Expand Up @@ -113,7 +113,7 @@
(.goto page url)
(check-for-text page "Signed in" "User is correctly signed in after verification.")
(.goto page base-url)
(check-for-text page "Signed inz" "User is correctly signed in on homepage."))
(check-for-text page "Signed in" "User is correctly signed in on homepage."))

(log "Closing resources.")
(j/call server :kill)
Expand Down

0 comments on commit 381106f

Please sign in to comment.