Skip to content

Commit

Permalink
Merge pull request #1 from jetbridge/experiment/api-registry
Browse files Browse the repository at this point in the history
Register metadata on classes
  • Loading branch information
revmischa committed Apr 18, 2021
2 parents 19088f3 + 6e57447 commit 7616929
Show file tree
Hide file tree
Showing 33 changed files with 918 additions and 224 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ plugins:
ignorePatterns:
- node_modules
- build
- jest.config.js

rules:
"@typescript-eslint/explicit-module-boundary-types": off
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: "15"
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Unit Tests
run: |
cd packages/jetkit-cdk
npm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build
node_modules
.idea
.DS_Store
*.map
27 changes: 27 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
moduleFileExtensions: ["ts", "tsx", "js"],
moduleNameMapper: {
// Mocks out all these file formats when tests are run
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"identity-obj-proxy",
},
roots: ["./packages"],
globals: {
"ts-jest": {
tsconfig: "tsconfig.base.json",
},
},
testMatch: ["**/__tests__/**/*.+(ts|tsx)", "**/?(*.)+(spec|test).+(ts|tsx)"],
transform: {
"^.+\\.tsx?$": "ts-jest",
},
transformIgnorePatterns: [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|ts|tsx)$",
],
collectCoverageFrom: [
"**/*.{ts,tsx}",
"!**/node_modules/**",
"!**/vendor/**",
],
};

0 comments on commit 7616929

Please sign in to comment.