test: CI node16 and 18 (#1426)

* test: CI node16 and 18

Signed-off-by: koooge <koooooge@gmail.com>

* chore: Replace jest-screenshot with jest-image-snapshot

Signed-off-by: koooge <koooooge@gmail.com>

* test: git mv snapshots

Signed-off-by: koooge <koooooge@gmail.com>

* test: Minor-upgrade canvas

Signed-off-by: koooge <koooooge@gmail.com>

---------

Signed-off-by: koooge <koooooge@gmail.com>
This commit is contained in:
koooge 2023-03-07 13:30:34 +01:00 committed by GitHub
parent 376b31bb98
commit d81f13ba2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
57 changed files with 225 additions and 585 deletions

View File

@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x]
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2

View File

@ -31,14 +31,14 @@
"brace": "^0.11.1",
"brfs": "~2.0.2",
"browserify": "^16.5.0",
"canvas": "^2.6.1",
"canvas": "^2.11.0",
"codemirror": "~5.49.2",
"eslint": "^7.8.1",
"gh-pages": "^3.1.0",
"iconv-lite": "^0.5.0",
"jest": "^29.4.3",
"jest-environment-jsdom": "^29.4.3",
"jest-screenshot": "^0.3.1",
"jest-image-snapshot": "^6.1.0",
"markdown": "~0.5.0",
"pdfjs-dist": "^2.4.456",
"prettier": "1.19.1",
@ -86,10 +86,6 @@
],
"setupFilesAfterEnv": [
"<rootDir>/tests/unit/setupTests.js"
],
"reporters": [
"default",
"jest-screenshot/reporter"
]
}
}

View File

@ -1,5 +1,5 @@
import matcher from './toContainChunk';
import { setupJestScreenshot } from 'jest-screenshot';
import { toMatchImageSnapshot } from 'jest-image-snapshot';
expect.extend(matcher);
setupJestScreenshot();
expect.extend({ toMatchImageSnapshot });

View File

Before

Width:  |  Height:  |  Size: 161 KiB

After

Width:  |  Height:  |  Size: 161 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

796
yarn.lock

File diff suppressed because it is too large Load Diff