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

Commit

Permalink
Merge pull request #860 from ubiquity/revert-734-feat/unit-test
Browse files Browse the repository at this point in the history
Revert "feat: automated qa - unit test setup(1)"
  • Loading branch information
0x4007 authored Oct 13, 2023
2 parents 40d836b + 50f346b commit 3ad77e5
Show file tree
Hide file tree
Showing 9 changed files with 1,230 additions and 1,956 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build and Test
name: Build
on:
push:
pull_request:

jobs:
build-and-test:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -21,10 +21,6 @@ jobs:
- name: Local Build
run: yarn build

# Enable `test` step once writing unit test done.
# - name: Test
# run: yarn test

- name: Lint
run: yarn lint

Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ supabase/temp
# Local Netlify folder
.netlify
bin
.yarn
.nyc_output
.yarn
11 changes: 0 additions & 11 deletions .nycrc.json

This file was deleted.

23 changes: 4 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
"lint": "eslint --ext .ts ./src",
"start:serverless": "tsx src/adapters/github/github-actions.ts",
"start:watch": "nodemon --exec 'yarn start'",
"start": "probot run ./lib/src/index.js",
"prepare": "husky install",
"test": "nyc ts-mocha --check-leaks --exit --timeout 120000 './test/**/*.spec.ts'",
"utils:cspell": "cspell --config .cspell.json 'src/**/*.{js,ts,json,md,yml}'"
"utils:cspell": "cspell --config .cspell.json 'src/**/*.{js,ts,json,md,yml}'",
"start": "probot run ./lib/index.js",
"prepare": "husky install"
},
"dependencies": {
"@actions/core": "^1.10.0",
Expand Down Expand Up @@ -66,14 +65,7 @@
"probot": "^12.2.4",
"telegraf": "^4.11.2",
"tsx": "^3.12.7",
"yaml": "^2.2.2",
"mocha": "10.2.0",
"nyc": "15.1.0",
"ts-mocha": "10.0.0",
"chai": "4.3.7",
"chai-as-promised": "7.1.1",
"chai-subset": "1.6.0",
"sinon-chai": "3.7.0"
"yaml": "^2.2.2"
},
"devDependencies": {
"@types/eslint": "^8.40.2",
Expand All @@ -82,13 +74,6 @@
"@types/lodash": "^4.14.197",
"@types/node": "^14.18.37",
"@types/source-map-support": "^0.5.6",
"@types/mocha": "10.0.1",
"@istanbuljs/nyc-config-typescript": "1.0.2",
"@types/chai": "4.3.4",
"@types/chai-as-promised": "7.1.5",
"@types/chai-subset": "1.3.3",
"@types/sinon": "10.0.13",
"@types/sinon-chai": "3.2.9",
"eslint": "^8.43.0",
"jest": "^26.6.3",
"nock": "^13.0.5",
Expand Down
4 changes: 3 additions & 1 deletion src/bindings/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export const loadConfig = async (context: Context): Promise<BotConfig> => {
permitBaseUrl: process.env.PERMIT_BASE_URL || permitBaseUrl,
},
unassign: {
timeRangeForMaxIssue: process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE ? Number(process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE) : timeRangeForMaxIssue,
timeRangeForMaxIssue: process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE
? Number(process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE)
: timeRangeForMaxIssue,
timeRangeForMaxIssueEnabled: process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE_ENABLED
? process.env.DEFAULT_TIME_RANGE_FOR_MAX_ISSUE_ENABLED == "true"
: timeRangeForMaxIssueEnabled,
Expand Down
10 changes: 0 additions & 10 deletions src/mocks/expect.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/mocks/index.ts

This file was deleted.

23 changes: 0 additions & 23 deletions test/utils/address.spec.ts

This file was deleted.

Loading

0 comments on commit 3ad77e5

Please sign in to comment.