Skip to content

Commit

Permalink
Add js test project
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaAlRashed committed Nov 2, 2024
1 parent a85c5c6 commit 831abad
Show file tree
Hide file tree
Showing 7 changed files with 4,597 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x' # Adjust if using a different .NET version
dotnet-version: '8.x'

- name: Restore dependencies
run: dotnet restore
Expand All @@ -27,3 +27,14 @@ jobs:

- name: Run tests
run: dotnet test Gridazor.Tests/Gridazor.Tests.csproj --no-build --verbosity normal

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install JavaScript dependencies
run: npm install

- name: Run JavaScript tests
run: npm test
3 changes: 3 additions & 0 deletions Gridazor.Tests/ClientSideTests/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
testEnvironment: "jest-environment-jsdom"
};
Loading

0 comments on commit 831abad

Please sign in to comment.