강동현
Builds for 1 pipeline failed in 2 minutes 2 seconds

Pipeline 테스트

...@@ -25,4 +25,5 @@ yarn-error.log* ...@@ -25,4 +25,5 @@ yarn-error.log*
25 # use css framework 25 # use css framework
26 web/src/index.css 26 web/src/index.css
27 27
28 -dist
...\ No newline at end of file ...\ No newline at end of file
28 +dist
29 +.nyc_output
...\ No newline at end of file ...\ No newline at end of file
......
1 +image: node:14-alpine
2 +
3 +stages:
4 + - build
5 + - test
6 +
7 +Build Server:
8 + stage: build
9 + before_script:
10 + - cd server
11 + - yarn install
12 + script:
13 + - yarn build
14 +
15 +Test Server:
16 + stage: test
17 + script:
18 + - yarn test
1 { 1 {
2 "dependencies": { 2 "dependencies": {
3 - "@types/chai": "^4.2.18",
4 "@types/express": "^4.17.11", 3 "@types/express": "^4.17.11",
5 - "@types/mocha": "^8.2.2",
6 - "@types/mocha-steps": "^1.3.0",
7 "@types/node": "^15.3.1", 4 "@types/node": "^15.3.1",
8 "@types/socket.io": "^3.0.2", 5 "@types/socket.io": "^3.0.2",
9 "@types/socket.io-client": "^3.0.0", 6 "@types/socket.io-client": "^3.0.0",
10 "@types/uuid": "^8.3.0", 7 "@types/uuid": "^8.3.0",
11 - "chai": "^4.3.4",
12 "express": "^4.17.1", 8 "express": "^4.17.1",
13 - "mocha": "^8.4.0",
14 - "mocha-steps": "^1.3.0",
15 "nodemon": "^2.0.7", 9 "nodemon": "^2.0.7",
16 "runtypes": "^6.3.0", 10 "runtypes": "^6.3.0",
17 "socket.io": "^4.1.2", 11 "socket.io": "^4.1.2",
...@@ -22,7 +16,14 @@ ...@@ -22,7 +16,14 @@
22 }, 16 },
23 "scripts": { 17 "scripts": {
24 "start": "nodemon index.ts", 18 "start": "nodemon index.ts",
25 - "test": "mocha -r ts-node/register --require mocha-steps ./**/*.test.ts", 19 + "test": "nyc mocha -r ts-node/register ./**/*.test.ts",
26 "build": "tsc -b -v" 20 "build": "tsc -b -v"
21 + },
22 + "devDependencies": {
23 + "@types/chai": "^4.2.18",
24 + "@types/mocha": "^8.2.2",
25 + "chai": "^4.3.4",
26 + "mocha": "^8.4.0",
27 + "nyc": "^15.1.0"
27 } 28 }
28 } 29 }
......
...@@ -68,5 +68,5 @@ ...@@ -68,5 +68,5 @@
68 "skipLibCheck": true /* Skip type checking of declaration files. */, 68 "skipLibCheck": true /* Skip type checking of declaration files. */,
69 "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ 69 "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
70 }, 70 },
71 - "include": ["../common/**/*"] 71 + "include": [".", "../common/**/*"]
72 } 72 }
......
This diff is collapsed. Click to expand it.