Skip to content

Commit

Permalink
test: introduce unit tests (#55)
Browse files Browse the repository at this point in the history
* unit tests

* unit tests

* introduce unit test for elements

* test: add unit tests

* add unit tests to github actions

* add separate pipeline
  • Loading branch information
SrinivasanTarget authored Jul 12, 2024
1 parent c943ac1 commit 5f8b024
Show file tree
Hide file tree
Showing 7 changed files with 27,852 additions and 27,733 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

name: Tests

jobs:
UnitTest:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
name: Install dependencies
- run: npm run build
name: Build
- run: npm run test
name: Unit Test
6 changes: 6 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extension: ['ts'],
spec: 'test/**/element.specs.ts',
require: 'ts-node/register',
timeout: 20000,
};
Loading

0 comments on commit 5f8b024

Please sign in to comment.