File tree 6 files changed +11
-12
lines changed
packages/sakuli-ocr/src/functions
6 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 20
20
shell : bash
21
21
- run : npm install
22
22
- run : npx lerna run build
23
- - run : npx lerna run test
23
+ - run : npm t -- --runInBand --ci --bail
24
24
- name : execute E2E tests
25
25
run : |
26
26
cd ./packages/e2e
Original file line number Diff line number Diff line change 20
20
node-version : 14.x
21
21
- run : npm install
22
22
- run : npx lerna run build
23
- - run : npx lerna run test
23
+ - run : npm t -- --runInBand --ci --bail
24
24
e2e-test :
25
25
name : e2e-test
26
26
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 23
23
run : echo "SAKULI_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
24
24
- run : npm install
25
25
- run : npx lerna run build
26
- - run : npx lerna run test
26
+ - run : npm t -- --runInBand --ci --bail
27
27
- name : execute E2E tests
28
28
run : |
29
29
cd ./packages/e2e
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ node_modules
2
2
.idea
3
3
out
4
4
dist
5
- tsconfig.tsbuildinfo
5
+ tsconfig.tsbuildinfo
6
+ coverage
Original file line number Diff line number Diff line change 6
6
"rebuild" : " npm run clean && npm install && npm run build" ,
7
7
"clean" : " lerna clean -y" ,
8
8
"postinstall" : " lerna bootstrap" ,
9
+ "test" : " jest" ,
9
10
"build" : " lerna run build" ,
10
11
"lerna:publish" : " lerna publish from-package --yes " ,
11
12
"lerna:publish-next" : " lerna publish --canary --include-merged-tags --preid next --dist-tag next --pre-dist-tag next --no-push --no-git-tag-version --no-git-reset --force-publish --yes"
Original file line number Diff line number Diff line change @@ -7,19 +7,16 @@ const md5File = require("md5-file");
7
7
describe ( "postprocess screenshot" , ( ) => {
8
8
it ( "should modify screenshot to match snapshot image" , async ( ) => {
9
9
//GIVEN
10
- const originalScreenshot = join (
11
- process . cwd ( ) ,
12
- "src/functions/__mocks__/sakuli-screen.png"
13
- ) ;
10
+ const originalScreenshot = join ( __dirname , "/__mocks__/sakuli-screen.png" ) ;
14
11
const screenshotToModify = join (
15
- process . cwd ( ) ,
16
- "src/functions /__mocks__/sakuli-screen-modify.png"
12
+ __dirname ,
13
+ "/__mocks__/sakuli-screen-modify.png"
17
14
) ;
18
15
await fs . copyFileSync ( originalScreenshot , screenshotToModify ) ;
19
16
20
17
const expectedResult = join (
21
- process . cwd ( ) ,
22
- "src/functions /__mocks__/sakuli-screen-snapshot.png"
18
+ __dirname ,
19
+ "/__mocks__/sakuli-screen-snapshot.png"
23
20
) ;
24
21
25
22
//WHEN
You can’t perform that action at this time.
0 commit comments