Skip to content

Commit

Permalink
add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mldangelo committed Oct 3, 2023
1 parent 731bcab commit fa83cbf
Show file tree
Hide file tree
Showing 6 changed files with 2,402 additions and 163 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ module.exports = {
sourceType: "script",
},
},
{
files: ["*.test.js"],
extends: ["plugin:jest/recommended", "plugin:jest/style"],
},
],
parserOptions: {
ecmaVersion: "latest",
},
plugins: ["cypress", "prettier"],
plugins: ["cypress", "jest", "prettier"],
rules: {
"class-methods-use-this": 0,
"func-names": 0,
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- name: run tests
- name: run unit tests
run: npx jest
- name: run frontend tests
uses: cypress-io/github-action@v6
with:
start: npm start
Expand Down
2 changes: 1 addition & 1 deletion cypress/tests/smartselfie-auth.cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe("smartselfie authentication ", () => {
describe("smartselfie authentication", () => {
beforeEach(() => {
cy.visit("/smartselfie");

Expand Down
Loading

0 comments on commit fa83cbf

Please sign in to comment.