Skip to content

Commit

Permalink
[CSR-780] Fix spec parsing issue (#54)
Browse files Browse the repository at this point in the history
* chore: add jest

* fix: sanitize the string before creating the dump file

* chore: fix lint

* chore: fix publishing version

* chore: ..

* chore: ..

---------

Co-authored-by: Andrew Goldis <[email protected]>
  • Loading branch information
vCaisim and agoldis authored Aug 25, 2023
1 parent 021455f commit 769b14e
Show file tree
Hide file tree
Showing 16 changed files with 13,584 additions and 7,304 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Lint

on:
push:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Unit Tests

on:
push:
branches:
- main
pull_request:
branches: [main]

jobs:
checks:
if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')"
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Install dependencies
run: npm ci

- name: Unit tests
run: npm run test
9 changes: 9 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.ts?$': 'ts-jest',
},
transformIgnorePatterns: ['node_modules'],
};
Loading

0 comments on commit 769b14e

Please sign in to comment.