Skip to content

Commit

Permalink
Update jest to support queueMircotask
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Apr 22, 2024
1 parent 770c1a2 commit a043c85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"survey-core": "latest"
},
"devDependencies": {
"@types/jest": "^23.3.3",
"@types/jest": "^25.1.5",
"@types/lodash": "4.14.121",
"@types/node": "7.0.4",
"@typescript-eslint/eslint-plugin": "^4.31.0",
Expand All @@ -37,13 +37,13 @@
"eslint": "^7.32.0",
"generate-json-webpack-plugin": "0.2.1",
"husky": "^2.7.0",
"jest": "^23.6.0",
"jest": "^25.2.7",
"jest-junit": "^16.0.0",
"live-server": "^1.2.2",
"rimraf": "2.5.4",
"standard-version": "^8.0.1",
"surveyjs-doc-generator": "git+https://github.com/surveyjs/surveyjs-doc-generator.git",
"ts-jest": "^23.10.3",
"ts-jest": "^25.2.7",
"ts-loader": "2.3.4",
"typescript": "^4.2.2",
"webpack": "2.2.1",
Expand Down
3 changes: 3 additions & 0 deletions tests/flat_signaturepad.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ test('Check signaturepad', async () => {

test('Check signaturepad with backgroundImage', async () => {
SurveyHelper.shouldConvertImageToPng = false;
const oldXMLSerializer = window.XMLSerializer;
window.XMLSerializer = undefined as any;
let json: any = {
questions: [
{
Expand Down Expand Up @@ -85,4 +87,5 @@ test('Check signaturepad with backgroundImage', async () => {
TestHelper.equalRect(expect, htmlBrick, assumeHTML);
TestHelper.equalRect(expect, backgroundImageBrick, assumeHTML);
SurveyHelper.shouldConvertImageToPng = true;
window.XMLSerializer = oldXMLSerializer
});

0 comments on commit a043c85

Please sign in to comment.