Skip to content

Commit 769b14e

Browse files
vCaisimagoldis
andauthored
[CSR-780] Fix spec parsing issue (#54)
* 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 <agoldis@gmail.com>
1 parent 021455f commit 769b14e

File tree

16 files changed

+13584
-7304
lines changed

16 files changed

+13584
-7304
lines changed

.github/workflows/ci.yml renamed to .github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Lint
22

33
on:
44
push:

.github/workflows/tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
checks:
12+
if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')"
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout source code
17+
uses: actions/checkout@v3
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Unit tests
23+
run: npm run test

jest.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
5+
transform: {
6+
'^.+\\.ts?$': 'ts-jest',
7+
},
8+
transformIgnorePatterns: ['node_modules'],
9+
};

0 commit comments

Comments
 (0)