-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,155 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,12 @@ jobs: | |
run: cd frontend && yarn lint | ||
- name: Type check | ||
run: cd frontend && yarn type-check | ||
- name: Run tests | ||
run: cd frontend && yarn test | ||
- name: Run tests and coverage | ||
run: cd frontend && yarn test && yarn test:coverage | ||
- name: ✅ Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
flags: frontend | ||
backend-test: | ||
name: 🧪 backend-ci | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
coverage: | ||
status: | ||
project: off | ||
patch: off | ||
|
||
flag_management: | ||
individual_flags: | ||
- name: frontend | ||
paths: | ||
- frontend/ | ||
statuses: | ||
- type: project | ||
target: 80% | ||
carryforward: true | ||
# - name: backend | ||
# paths: | ||
# - server/ | ||
# statuses: | ||
# - type: project | ||
# target: 80% | ||
github_checks: | ||
annotations: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { render } from "@testing-library/react"; | ||
import React from "react"; | ||
import App from "../../src/App"; | ||
test("renders the page", () => { | ||
render(<App />); | ||
}); |
5 changes: 2 additions & 3 deletions
5
...rc/__test__/unit_test/PathLength.test.tsx → ...src/components/fields/PathLength.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
.../src/__test__/unit_test/Pressure.test.tsx → ..._/src/components/fields/Pressure.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...tend/src/__test__/unit_test/Tgas.test.tsx → ...sts__/src/components/fields/Tgas.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...tend/src/__test__/unit_test/Trot.test.tsx → ...sts__/src/components/fields/Trot.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...tend/src/__test__/unit_test/Tvib.test.tsx → ...sts__/src/components/fields/Tvib.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
frontend/src/__test__/unit_test/EqililibriumSwitch.test.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/// <reference types="vitest" /> | ||
/// <reference types="vite/client" /> | ||
|
||
import { defineConfig } from "vite"; | ||
import react from "@vitejs/plugin-react"; | ||
|
||
export default defineConfig(() => { | ||
return { | ||
server: { | ||
// open: true, /*opens up the browser */ | ||
hmr: { overlay: false }, | ||
}, | ||
build: { | ||
outDir: "build", | ||
}, | ||
test: { | ||
globals: true, | ||
environment: "jsdom", | ||
setupFiles: ["./src/setupTests.ts"], | ||
coverage: { | ||
provider: "v8", | ||
reporter: ["text", "json", "html"], | ||
reportsDirectory: "./__tests__/coverage" /*coverage report*/, | ||
}, | ||
}, | ||
plugins: [react()], | ||
}; | ||
}); |
Oops, something went wrong.