Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
pull_request:
branches: [main, test]

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/das

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: packages/das/package-lock.json

- run: npm ci

- name: Test
run: npm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ data/
# GitHub App private keys, etc.
secrets/
*.pem
*.md
13 changes: 13 additions & 0 deletions packages/das/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,18 @@
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "warn"
},
"overrides": [
{
"files": ["**/*.spec.ts"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/unbound-method": "off"
}
}
],
"ignorePatterns": ["dist/", "node_modules/", "coverage/"]
}
11 changes: 11 additions & 0 deletions packages/das/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
roots: ["<rootDir>/src"],
testRegex: ".*\\.spec\\.ts$",
moduleFileExtensions: ["ts", "js", "json"],
// NestJS decorators (and TypeORM entities pulled in transitively by some
// units under test) need the metadata reflection polyfill at load time.
setupFiles: ["reflect-metadata"],
};
Loading
Loading