Skip to content

Commit 343dedf

Browse files
authored
chore: remove aw (#1771)
* chore: remove aw * chore: add back jimp * chore: add back jimp
1 parent 8a6c281 commit 343dedf

File tree

7 files changed

+534
-2614
lines changed

7 files changed

+534
-2614
lines changed

.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
"chai": false,
9595
"expect": false,
9696
"sinon": false,
97-
"aw": false,
9897
"page": false
9998
},
10099
"plugins": ["mocha"],

aw.config.cjs

Lines changed: 0 additions & 16 deletions
This file was deleted.

commands/create/templates/sn/common/_eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"chai": false,
2727
"expect": false,
2828
"sinon": false,
29-
"aw": false,
3029
"page": false
3130
},
3231
"plugins": ["mocha"],

examples/sn-hello-react/.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"chai": false,
2929
"expect": false,
3030
"sinon": false,
31-
"aw": false,
3231
"page": false
3332
},
3433
"plugins": ["mocha"],

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"locale:verify": "node tools/verify-translations.cjs",
1313
"locale:generate": "node apis/locale/scripts/generate-all.mjs",
1414
"lint": "eslint packages apis commands --ext .js,.jsx",
15-
"lint:check": "eslint --print-config ./aw.config.cjs | eslint-config-prettier-check",
1615
"spec": "lerna run spec --stream --concurrency 99 && lerna run ts --stream --concurrency 99 ",
1716
"mashup": "node scripts/start-mashup.js",
1817
"test": "yarn run test:unit",
@@ -37,7 +36,6 @@
3736
]
3837
},
3938
"devDependencies": {
40-
"@after-work.js/aw": "6.0.14",
4139
"@babel/cli": "7.27.2",
4240
"@babel/core": "7.27.4",
4341
"@babel/helper-plugin-utils": "7.27.1",
@@ -54,9 +52,9 @@
5452
"@rollup/plugin-node-resolve": "16.0.1",
5553
"@rollup/plugin-replace": "6.0.2",
5654
"@rollup/plugin-terser": "0.4.4",
55+
"@testing-library/dom": "^10.4.0",
5756
"@testing-library/jest-dom": "^6.6.3",
5857
"@testing-library/react": "^16.3.0",
59-
"@testing-library/dom": "^10.4.0",
6058
"@testing-library/user-event": "^14.6.1",
6159
"babel-loader": "10.0.0",
6260
"babel-plugin-istanbul": "7.0.0",
@@ -79,6 +77,7 @@
7977
"jest-environment-jsdom": "^29.7.0",
8078
"jest-junit": "^16.0.0",
8179
"jest-location-mock": "^2.0.0",
80+
"jimp": "^1.6.0",
8281
"lerna": "8.2.2",
8382
"lint-staged": "^16.1.2",
8483
"mocha-junit-reporter": "2.2.1",

test/rendering/testUtils.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import path from 'path';
2-
import jimp from 'jimp';
2+
import { Jimp } from 'jimp';
33

44
export async function looksLike(fileName, capturedPath) {
55
const artifactsPath = path.resolve(__dirname, './__artifacts__/');
66
const storedPath = path.resolve(artifactsPath, 'baseline', fileName);
77

8-
const stored = await jimp.read(storedPath);
9-
const captured = await jimp.read(capturedPath);
8+
const stored = await Jimp.read(storedPath);
9+
const captured = await Jimp.read(capturedPath);
1010

11-
const distance = jimp.distance(stored, captured);
12-
const diff = jimp.diff(stored, captured);
11+
const distance = Jimp.distance(stored, captured);
12+
const diff = Jimp.diff(stored, captured);
1313

1414
if (distance > 0.001 || diff.percent > 0.007) {
1515
await captured.writeAsync(path.resolve(artifactsPath, 'regression', fileName));

0 commit comments

Comments
 (0)