Skip to content

Commit ddc0422

Browse files
authored
upgraded to v0.8
Switched to jest and upgraded node packages
1 parent b39e423 commit ddc0422

31 files changed

+4848
-7059
lines changed

.eslintrc.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/node.js.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [12.x, 14.x, 16.x]
19+
node-version: [20.x, 21.x, 22.x]
2020
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2121

2222
steps:
@@ -27,9 +27,13 @@ jobs:
2727
node-version: ${{ matrix.node-version }}
2828
cache: 'npm'
2929
- run: npm ci
30-
- run: npm install @rxstack/core@^0.7 @rxstack/async-event-dispatcher@^0.6 @rxstack/platform@^0.7 @rxstack/exceptions@^0.6 @rxstack/query-filter@^0.6 @rxstack/security@^0.7 @rxstack/utils@^0.6 @rxstack/service-registry@^0.6 winston@^3.5
31-
- run: npm test
30+
- run: npm install @rxstack/core@^0.8 @rxstack/async-event-dispatcher@^0.8 @rxstack/platform@^0.8 @rxstack/exceptions@^0.8 @rxstack/query-filter@^0.8 @rxstack/security@^0.8 @rxstack/utils@^0.8 @rxstack/service-registry@^0.8 winston@^3.5
3231
- name: Test & publish code coverage
33-
uses: paambaati/codeclimate-action@v3.0.0
32+
uses: paambaati/codeclimate-action@v9.0.0
3433
env:
3534
CC_TEST_REPORTER_ID: 48e7b991532865979eea4ac807d430ab52affb81588771dbf91d7a0ad69dec47
35+
with:
36+
coverageCommand: npm run test
37+
coverageLocations: |
38+
${{github.workspace}}/coverage/lcov.info:lcov
39+
debug: true

eslint.config.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
export default [
6+
{files: ["**/*.{js,mjs,cjs,ts}"]},
7+
{languageOptions: { globals: globals.browser }},
8+
pluginJs.configs.recommended,
9+
...tseslint.configs.recommended,
10+
{
11+
rules: {
12+
"@typescript-eslint/no-unused-expressions": "off",
13+
"@typescript-eslint/no-var-requires": "off",
14+
"@typescript-eslint/no-explicit-any": "off",
15+
"@typescript-eslint/no-require-imports": "off",
16+
"@typescript-eslint/no-unused-vars": "off",
17+
"@typescript-eslint/ban-ts-comment": "off",
18+
}
19+
},
20+
];

jest.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} **/
2+
module.exports = {
3+
testEnvironment: "node",
4+
"bail": 1,
5+
"verbose": true,
6+
transform: {
7+
"^.+.tsx?$": ["ts-jest",{}],
8+
},
9+
"collectCoverageFrom": [
10+
"src/**/*.ts"
11+
],
12+
"coveragePathIgnorePatterns": [
13+
"index.ts",
14+
],
15+
};

0 commit comments

Comments
 (0)