Skip to content

Commit 4fd4419

Browse files
committed
Added fastify and mocked app start tests, for some reason nyc does count commented out code as uncovered..
1 parent 2498006 commit 4fd4419

File tree

10 files changed

+491
-48
lines changed

10 files changed

+491
-48
lines changed

.mocharc.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ require:
44
- source-map-support/register
55
recursive: true
66
color: true
7-
extension:
8-
- ts
9-
- test.ts
7+
exit: true

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
2323
"args": [
2424
"--no-timeouts",
25-
"${workspaceFolder}/src",
26-
"${workspaceFolder}/test"
25+
"${workspaceFolder}/src/**/*.test.ts",
26+
"${workspaceFolder}/test/**/*.ts"
2727
],
2828
"internalConsoleOptions": "openOnSessionStart"
2929
},

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN npm install --only=production
1414
FROM node:14-alpine
1515
ENV NODE_ENV production
1616
WORKDIR /usr/src/app
17-
# COPY --from=deps /app/node_modules/ ./node_modules/
17+
COPY --from=deps /app/node_modules/ ./node_modules/
1818
COPY --from=build /app/package.json .
1919
COPY --from=build /app/build/ ./
2020
RUN chown -R node:node ./

0 commit comments

Comments
 (0)