Skip to content
Snippets Groups Projects
Commit d33841e6 authored by Yuriy Maksymets's avatar Yuriy Maksymets
Browse files

Testing stage in pipeline

parent cc50d1ce
No related branches found
No related tags found
No related merge requests found
...@@ -6,8 +6,14 @@ before_script: ...@@ -6,8 +6,14 @@ before_script:
stages: stages:
- build - build
- test
backend_build: backend_build:
stage: build stage: build
script: script:
- npm build - npm build
backend_test:
stage: test
script:
- npm test
...@@ -7,3 +7,7 @@ describe("number adding", () => { ...@@ -7,3 +7,7 @@ describe("number adding", () => {
}) })
}) })
}) })
describe("server", () => {
it("should work", () => {})
})
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
"scripts": { "scripts": {
"build": "webpack src/app.js -o public/js/app.js", "build": "webpack src/app.js -o public/js/app.js",
"start": "http-server -c-1 -p 12345 public", "start": "http-server -c-1 -p 12345 public",
"test": "jest" "test": "jest",
"test-changed": "jest --only-changed",
"test-coverage": "jest --coverage"
}, },
"dependencies": { "dependencies": {
"http-server": "^0.11.1", "http-server": "^0.11.1",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment