Browse Source

Test environment set up

master
David Ludwig 3 years ago
parent
commit
b720e7076f
4 changed files with 858 additions and 18 deletions
  1. +4
    -0
      package.json
  2. +17
    -2
      packages/microservice/package.json
  3. +8
    -0
      packages/microservice/test/unit/MicroService.spec.ts
  4. +829
    -16
      yarn.lock

+ 4
- 0
package.json View File

@ -14,6 +14,7 @@
"export:builds": "/bin/sh ./scripts/docker/export_builds.sh"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/chai": "^4.3.0",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.21",
@ -21,6 +22,9 @@
"lerna": "^4.0.0",
"mocha": "^9.2.1",
"nodemon": "^2.0.15",
"nyc": "^15.1.0",
"patch-package": "^6.4.7",
"ts-node": "^10.7.0",
"typescript": "^4.6.2"
}
}

+ 17
- 2
packages/microservice/package.json View File

@ -1,11 +1,26 @@
{
"name": "@autoplex/utils",
"name": "@autoplex/microservice",
"version": "0.1.0",
"main": "dist/lib/index.js",
"types": "dist/typings/index.d.ts",
"license": "MIT",
"scripts": {
"build": "yarn run clean && tsc",
"clean": "rimraf ./dist"
"clean": "rimraf ./dist",
"coverage": "nyc yarn run test",
"test": "mocha --require ts-node/register ./test/**/*.spec.ts"
},
"nyc": {
"all": true,
"extension": [
".ts"
],
"include": [
"src/**/*.ts"
],
"reporter": [
"lcov",
"text"
]
}
}

+ 8
- 0
packages/microservice/test/unit/MicroService.spec.ts View File

@ -0,0 +1,8 @@
import { expect } from "chai";
import "mocha";
describe("Test", () => {
it("Should be this", () => {
expect(true).to.equal(true);
})
});

+ 829
- 16
yarn.lock
File diff suppressed because it is too large
View File


Loading…
Cancel
Save