-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes libms windows error and tests (#888)
- Fixes libms error on Windows OS - Improves e2e tests and makes them work on github actions - Adds docker compose for developers --------- Co-authored-by: nichlaes <[email protected]>
- Loading branch information
Showing
12 changed files
with
294 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
services: | ||
libms: | ||
build: | ||
context: ../../ | ||
dockerfile: ./docker/libms.dockerfile | ||
volumes: | ||
- ${LOCAL_PATH}:/dtaas/libms/files | ||
ports: | ||
- ${PORT}:4001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@into-cps-association/libms", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"description": "microservices that handles request by fetching and returning the file-names and folders of given directory", | ||
"author": "[email protected]", | ||
"contributors": [ | ||
|
@@ -11,21 +11,21 @@ | |
"private": false, | ||
"license": "SEE LICENSE IN <LICENSE.md>", | ||
"scripts": { | ||
"build": "npx tsc", | ||
"build": "tsc", | ||
"clean": "npx rimraf build node_modules coverage dist src.svg test.svg", | ||
"format": "prettier --ignore-path ../.gitignore --write \"**/*.{ts,tsx,css,scss}\"", | ||
"graph": "npx madge --image src.svg src && npx madge --image test.svg test", | ||
"start": "node dist/src/main.js", | ||
"start:pm2": "pm2 start pm2.config.js", | ||
"stop:pm2": "pm2 delete libms", | ||
"syntax": "npx eslint . --fix", | ||
"syntax": "eslint . --fix", | ||
"pretest": "npx shx cp test/data/user2/tools/README.md ../../files/user2/tools/README.md", | ||
"posttest": "npx rimraf ../../files/user2/tools/README.md", | ||
"test:all": "npx cross-env LOCAL_PATH=test/data jest --testPathIgnorePatterns=cloudcmd --coverage", | ||
"test:e2e": "npx cross-env LOCAL_PATH=test/data jest --config ./test/jest-e2e.json --coverage", | ||
"test:http": "yarn build && pm2 start -f --name libms-test dist/src/main.js -- -c .env -H ./config/http.json && jest test/cloudcmd --coverage --coverageThreshold=\"{}\" && pm2 delete libms-test", | ||
"test:http-nocov": "yarn build && pm2 start -f --name libms-test dist/src/main.js -- -c .env -H ./config/http.json && jest test/cloudcmd --coverage=false && pm2 delete libms-test", | ||
"test:http-github": "yarn build && yarn start:pm2 && jest test/cloudcmd --coverage --coverageThreshold=\"{}\" && pm2 delete libms", | ||
"test:http-github": "jest test/cloudcmd --coverage --coverageThreshold=\"{}\"", | ||
"test:int": "npx cross-env LOCAL_PATH=test/data jest ../test/integration --coverage", | ||
"test:nocov": "yarn test:http-nocov && npx cross-env LOCAL_PATH=test/data jest --testPathIgnorePatterns=cloudcmd --coverage=false", | ||
"test:unit": "npx cross-env LOCAL_PATH=test/data jest ../test/unit --coverage" | ||
|
@@ -59,8 +59,8 @@ | |
"@types/jest": "^29.5.12", | ||
"@types/node": "20.12.5", | ||
"@types/supertest": "^6.0.2", | ||
"@typescript-eslint/eslint-plugin": "^6.19.0", | ||
"@typescript-eslint/parser": "^6.19.0", | ||
"@typescript-eslint/eslint-plugin": "^8.4.0", | ||
"@typescript-eslint/parser": "^8.4.0", | ||
"cross-fetch": "^4.0.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.