Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

[#563] Refactor tests #564

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
strategy:
matrix:
node:
- '12.x'
- '13.x'
- '14.x'
- '15.x'

name: Node ${{ matrix.node }}
Expand All @@ -18,11 +21,11 @@ jobs:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn install
- name: TypeScript & Build
- name: TypeScript
run: yarn build
- name: Prettier
run: yarn prettierlint
- name: ESLint
run: yarn eslint
# - name: Tests
# run: sudo yarn test
- name: Tests
run: sudo yarn test
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"prettier": "prettier --write src test",
"tsc": "tsc --noEmit",
"fix": "yarn prettier && yarn eslint --fix",
"test": "ava dist/test/index.test.js"
"test": "mocha -r ts-node/register test/index.ts"
},
"engines": {
"node": "15"
"node": ">=12"
},
"repository": {
"type": "git",
Expand All @@ -37,17 +37,19 @@
"devDependencies": {
"@types/deep-equal": "^1.0.1",
"@types/mkdirp": "^1.0.1",
"@types/mocha": "^8.2.0",
"@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.9.1",
"ava": "^3.11.1",
"deep-equal": "^2.0.3",
"eslint": "^7.7.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-prettier": "^3.1.4",
"mkdirp": "^1.0.3",
"mocha": "^8.2.1",
"nodemon": "^2.0.4",
"prettier": "^2.0.5",
"tree-sitter": "^0.17.0",
"ts-node": "^9.1.1",
"typescript": "^4.1.2"
}
}
9 changes: 0 additions & 9 deletions test/cases/abstraction/abstraction_branches.tn

This file was deleted.

5 changes: 0 additions & 5 deletions test/cases/abstraction/argument_type_mismatch.tn

This file was deleted.

20 changes: 0 additions & 20 deletions test/cases/abstraction/fibonacci.tn

This file was deleted.

16 changes: 0 additions & 16 deletions test/cases/abstraction/index.tn

This file was deleted.

5 changes: 0 additions & 5 deletions test/cases/abstraction/non_exhaustive_patterns.tn

This file was deleted.

23 changes: 0 additions & 23 deletions test/cases/abstraction/pattern_matching.tn

This file was deleted.

23 changes: 0 additions & 23 deletions test/cases/abstraction/quicksort.tn

This file was deleted.

9 changes: 0 additions & 9 deletions test/cases/abstraction/type_constraints.tn

This file was deleted.

9 changes: 0 additions & 9 deletions test/cases/access/index.tn

This file was deleted.

7 changes: 0 additions & 7 deletions test/cases/application/index.tn

This file was deleted.

9 changes: 0 additions & 9 deletions test/cases/application/infix_application.tn

This file was deleted.

7 changes: 0 additions & 7 deletions test/cases/application/partial_application.tn

This file was deleted.

5 changes: 0 additions & 5 deletions test/cases/application/prefix_application.tn

This file was deleted.

5 changes: 0 additions & 5 deletions test/cases/assignment/duplicate_binding.tn

This file was deleted.

8 changes: 0 additions & 8 deletions test/cases/assignment/index.tn

This file was deleted.

10 changes: 0 additions & 10 deletions test/cases/assignment/overloading.tn

This file was deleted.

4 changes: 0 additions & 4 deletions test/cases/assignment/overmatching.tn

This file was deleted.

4 changes: 0 additions & 4 deletions test/cases/assignment/partially_matching.tn

This file was deleted.

30 changes: 0 additions & 30 deletions test/cases/assignment/pattern_matching.tn

This file was deleted.

44 changes: 0 additions & 44 deletions test/cases/assignment/rest.tn

This file was deleted.

20 changes: 0 additions & 20 deletions test/cases/case/index.tn

This file was deleted.

6 changes: 0 additions & 6 deletions test/cases/case/missing_binding.tn

This file was deleted.

7 changes: 0 additions & 7 deletions test/cases/conditional/inline.tn

This file was deleted.

15 changes: 0 additions & 15 deletions test/cases/conditional/multiline.tn

This file was deleted.

10 changes: 0 additions & 10 deletions test/cases/import_export/external_import.tn

This file was deleted.

Loading