-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jetbridge/experiment/api-registry
Register metadata on classes
- Loading branch information
Showing
33 changed files
with
918 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ build | |
node_modules | ||
.idea | ||
.DS_Store | ||
*.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/**", | ||
], | ||
}; |
Oops, something went wrong.