Skip to content

Commit

Permalink
Merge pull request #96 from WildCodeSchool/adding-missing-tests
Browse files Browse the repository at this point in the history
Adding missing tests
  • Loading branch information
VincentRssx authored Dec 12, 2024
2 parents 30b9dd8 + 982efd4 commit 173abb6
Show file tree
Hide file tree
Showing 15 changed files with 219 additions and 3,507 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ jobs:
- name: Goto frontend and run tests
run: cd frontend && npm i && npm test

test-back:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Copy production env file
run: echo "${{ secrets.PRODUCTION_ENV_FILE }}" > .env
- name: Goto backend and run tests
run: cd backend && npm i && npm test

test-e2e:
runs-on: ubuntu-latest
steps:
Expand Down
25 changes: 24 additions & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.env
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
/.env
7 changes: 7 additions & 0 deletions backend/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/src/$1',
},
};
Loading

0 comments on commit 173abb6

Please sign in to comment.