Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
feat: Azure API management (#157)
Browse files Browse the repository at this point in the history
- Adds better logging for API management (displays function urls)
- Adds unit tests
- Updates configuration for better Jest debugging
  • Loading branch information
wbreza authored Jun 6, 2019
1 parent 1aa82a2 commit 2364a84
Show file tree
Hide file tree
Showing 39 changed files with 3,885 additions and 1,641 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
[
"react-app",
{
"flow": false,
"typescript": true
}
]
]
}
10 changes: 8 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended"],
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"quotes": ["error", "double"],
"@typescript-eslint/indent": [
"error",
2
],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-parameter-properties": 0
"@typescript-eslint/no-parameter-properties": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-object-literal-type-assertion": 0
}
}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ install:
- npm install

script:
- npm test
- npm run test:ci

after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"eslint.options": {
"configFile": "./.eslintrc.json"
},
"eslint.validate": [
"javascript",
"typescript"
]
}
33 changes: 23 additions & 10 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
module.exports = {
preset: 'ts-jest',
transform: {
".(ts|tsx)": "ts-jest"
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts"
],
"testEnvironment": "node",
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
},
testRegex: "((\\.|/)(test|spec))\\.ts$",
moduleFileExtensions: ["ts", "tsx", "js"],
testPathIgnorePatterns: [
"/lib/",
"/node_modules/"
"testPathIgnorePatterns": [
"./lib",
"./node_modules"
],
"transformIgnorePatterns": [
"./lib",
"./node_modules"
],
collectCoverage: true
};
"moduleFileExtensions": [
"js",
"ts",
"tsx",
"json",
"jsx",
"node"
]
};
Loading

0 comments on commit 2364a84

Please sign in to comment.