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

Commit 3ad77e5

Browse files
authored
Merge pull request #860 from ubiquity/revert-734-feat/unit-test
Revert "feat: automated qa - unit test setup(1)"
2 parents 40d836b + 50f346b commit 3ad77e5

File tree

9 files changed

+1230
-1956
lines changed

9 files changed

+1230
-1956
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Build and Test
1+
name: Build
22
on:
33
push:
44
pull_request:
55

66
jobs:
7-
build-and-test:
7+
build:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout repository
@@ -21,10 +21,6 @@ jobs:
2121
- name: Local Build
2222
run: yarn build
2323

24-
# Enable `test` step once writing unit test done.
25-
# - name: Test
26-
# run: yarn test
27-
2824
- name: Lint
2925
run: yarn lint
3026

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ supabase/temp
1414
# Local Netlify folder
1515
.netlify
1616
bin
17-
.yarn
18-
.nyc_output
17+
.yarn

.nycrc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@
2121
"lint": "eslint --ext .ts ./src",
2222
"start:serverless": "tsx src/adapters/github/github-actions.ts",
2323
"start:watch": "nodemon --exec 'yarn start'",
24-
"start": "probot run ./lib/src/index.js",
25-
"prepare": "husky install",
26-
"test": "nyc ts-mocha --check-leaks --exit --timeout 120000 './test/**/*.spec.ts'",
27-
"utils:cspell": "cspell --config .cspell.json 'src/**/*.{js,ts,json,md,yml}'"
24+
"utils:cspell": "cspell --config .cspell.json 'src/**/*.{js,ts,json,md,yml}'",
25+
"start": "probot run ./lib/index.js",
26+
"prepare": "husky install"
2827
},
2928
"dependencies": {
3029
"@actions/core": "^1.10.0",
@@ -66,14 +65,7 @@
6665
"probot": "^12.2.4",
6766
"telegraf": "^4.11.2",
6867
"tsx": "^3.12.7",
69-
"yaml": "^2.2.2",
70-
"mocha": "10.2.0",
71-
"nyc": "15.1.0",
72-
"ts-mocha": "10.0.0",
73-
"chai": "4.3.7",
74-
"chai-as-promised": "7.1.1",
75-
"chai-subset": "1.6.0",
76-
"sinon-chai": "3.7.0"
68+
"yaml": "^2.2.2"
7769
},
7870
"devDependencies": {
7971
"@types/eslint": "^8.40.2",
@@ -82,13 +74,6 @@
8274
"@types/lodash": "^4.14.197",
8375
"@types/node": "^14.18.37",
8476
"@types/source-map-support": "^0.5.6",
85-
"@types/mocha": "10.0.1",
86-
"@istanbuljs/nyc-config-typescript": "1.0.2",
87-
"@types/chai": "4.3.4",
88-
"@types/chai-as-promised": "7.1.5",
89-
"@types/chai-subset": "1.3.3",
90-
"@types/sinon": "10.0.13",
91-
"@types/sinon-chai": "3.2.9",
9277
"eslint": "^8.43.0",
9378
"jest": "^26.6.3",
9479
"nock": "^13.0.5",

src/bindings/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ export const loadConfig = async (context: Context): Promise<BotConfig> => {
6565
permitBaseUrl: process.env.PERMIT_BASE_URL || permitBaseUrl,
6666
},
6767
unassign: {
68-
timeRangeForMaxIssue: process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE ? Number(process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE) : timeRangeForMaxIssue,
68+
timeRangeForMaxIssue: process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE
69+
? Number(process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE)
70+
: timeRangeForMaxIssue,
6971
timeRangeForMaxIssueEnabled: process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE_ENABLED
7072
? process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE_ENABLED == "true"
7173
: timeRangeForMaxIssueEnabled,

src/mocks/expect.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/mocks/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/utils/address.spec.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)