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

Commit 2364a84

Browse files
authored
feat: Azure API management (#157)
- Adds better logging for API management (displays function urls) - Adds unit tests - Updates configuration for better Jest debugging
1 parent 1aa82a2 commit 2364a84

39 files changed

+3885
-1641
lines changed

.babelrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"presets": [
3+
[
4+
"react-app",
5+
{
6+
"flow": false,
7+
"typescript": true
8+
}
9+
]
10+
]
11+
}

.eslintrc.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
{
22
"parser": "@typescript-eslint/parser",
3-
"extends": ["plugin:@typescript-eslint/recommended"],
3+
"parserOptions": {
4+
"project": "./tsconfig.json"
5+
},
46
"plugins": ["@typescript-eslint"],
7+
"extends": ["plugin:@typescript-eslint/recommended"],
58
"rules": {
9+
"quotes": ["error", "double"],
610
"@typescript-eslint/indent": [
711
"error",
812
2
913
],
1014
"@typescript-eslint/no-explicit-any": 0,
1115
"@typescript-eslint/explicit-function-return-type": 0,
12-
"@typescript-eslint/no-parameter-properties": 0
16+
"@typescript-eslint/no-parameter-properties": 0,
17+
"@typescript-eslint/no-use-before-define": 0,
18+
"@typescript-eslint/no-object-literal-type-assertion": 0
1319
}
1420
}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install:
1313
- npm install
1414

1515
script:
16-
- npm test
16+
- npm run test:ci
1717

1818
after_success:
1919
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"eslint.options": {
3+
"configFile": "./.eslintrc.json"
4+
},
5+
"eslint.validate": [
6+
"javascript",
7+
"typescript"
8+
]
9+
}

jest.config.js

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
module.exports = {
2-
preset: 'ts-jest',
3-
transform: {
4-
".(ts|tsx)": "ts-jest"
2+
"collectCoverageFrom": [
3+
"src/**/*.{js,jsx,ts,tsx}",
4+
"!src/**/*.d.ts"
5+
],
6+
"testEnvironment": "node",
7+
"transform": {
8+
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
59
},
6-
testRegex: "((\\.|/)(test|spec))\\.ts$",
7-
moduleFileExtensions: ["ts", "tsx", "js"],
8-
testPathIgnorePatterns: [
9-
"/lib/",
10-
"/node_modules/"
10+
"testPathIgnorePatterns": [
11+
"./lib",
12+
"./node_modules"
13+
],
14+
"transformIgnorePatterns": [
15+
"./lib",
16+
"./node_modules"
1117
],
12-
collectCoverage: true
13-
};
18+
"moduleFileExtensions": [
19+
"js",
20+
"ts",
21+
"tsx",
22+
"json",
23+
"jsx",
24+
"node"
25+
]
26+
};

0 commit comments

Comments
 (0)