Skip to content

Commit 83180df

Browse files
committed
fix: adjust tests after version bump
1 parent d6487af commit 83180df

File tree

23 files changed

+1054
-61
lines changed

23 files changed

+1054
-61
lines changed

.github/workflows/heuristic-table.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
uses: actions/setup-node@v1
2121
with:
2222
node-version: ${{ matrix.node-version }}
23+
- name: Install canvas system dependencies
24+
uses: awalsh128/cache-apt-pkgs-action@latest
25+
with:
26+
packages: libcairo2-dev libjpeg-dev libpng-dev libgif-dev libpango1.0-dev librsvg2-dev
27+
version: 1.0
2328
- run: yarn install --immutable
2429
- run: yarn build:core
2530
name: Build core

.github/workflows/iframe.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
uses: actions/setup-node@v1
2121
with:
2222
node-version: ${{ matrix.node-version }}
23+
- name: Install canvas system dependencies
24+
uses: awalsh128/cache-apt-pkgs-action@latest
25+
with:
26+
packages: libcairo2-dev libjpeg-dev libpng-dev libgif-dev libpango1.0-dev librsvg2-dev
27+
version: 1.0
2328
- run: yarn install --immutable
2429
- run: yarn build:core
2530
name: Build core

.github/workflows/table.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
uses: actions/setup-node@v1
2121
with:
2222
node-version: ${{ matrix.node-version }}
23+
- name: Install canvas system dependencies
24+
uses: awalsh128/cache-apt-pkgs-action@latest
25+
with:
26+
packages: libcairo2-dev libjpeg-dev libpng-dev libgif-dev libpango1.0-dev librsvg2-dev
27+
version: 1.0
2328
- run: yarn install --immutable
2429
- run: yarn build:core
2530
name: Build core

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-require-imports */
12
const tsPlugin = require('@typescript-eslint/eslint-plugin');
23
const compat = require('eslint-plugin-compat');
34
const tsdoc = require('eslint-plugin-tsdoc');

jest/__mocks__/node-fetch.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// eslint-disable-next-line compat/compat
2+
const neverResolve = () => new Promise(() => {});
3+
module.exports = neverResolve;
4+
module.exports.default = neverResolve;

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"react": "19.2.0",
4141
"react-dom": "19.2.0",
4242
"react-native": "0.83.2",
43-
"react-test-renderer": "19.2.0",
4443
"react-native-webview": "13.16.0"
4544
},
4645
"author": "Jules Sam. Randolph <jules.sam.randolph@gmail.com> (https://github.com/jsamr)",

packages/heuristic-table-plugin/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
"@microsoft/api-documenter": "^7.29.6",
4040
"@microsoft/api-extractor": "7.57.6",
4141
"@native-html/render": "1.0.0-alpha.0",
42+
"@testing-library/react": "16.3.2",
4243
"@testing-library/react-native": "^13.3.3",
4344
"@tsconfig/react-native": "^3.0.9",
4445
"@types/html-validator": "^5.0.6",
4546
"@types/jest": "^30.0.0",
4647
"@types/react": "^19.2.14",
4748
"@types/react-native": "^0.73.0",
48-
"@types/react-test-renderer": "^19.1.0",
4949
"babel-jest": "^30.2.0",
5050
"babel-plugin-inline-import": "^3.0.0",
5151
"eslint": "^10.0.2",
@@ -55,7 +55,6 @@
5555
"react": "19.2.0",
5656
"react-native": "0.83.2",
5757
"react-native-builder-bob": "^0.40.18",
58-
"react-test-renderer": "19.2.0",
5958
"typescript": "~5.8.2"
6059
},
6160
"dependencies": {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../../../../tsconfig-base.json",
3+
"compilerOptions": {
4+
"types": ["jest"],
5+
"noEmit": true,
6+
"ignoreDeprecations": "6.0"
7+
},
8+
"exclude": ["../../../node_modules", "../../../lib"]
9+
}

packages/iframe-plugin/jest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ module.exports = {
44
testRegex: 'src/.*\\.test\\.tsx?$',
55
coveragePathIgnorePatterns: ['/node_modules/', '__tests__'],
66
transformIgnorePatterns: [
7-
'node_modules/(?!(@react-native|react-native|react-native-webview|ramda|@native-html|stringify-entities|character-entities-html4|character-entities-legacy)/)'
7+
'node_modules/(?!(@react-native|react-native|react-native-webview|ramda|@native-html|@formidable-webview|stringify-entities|character-entities-html4|character-entities-legacy)/)'
88
],
9+
moduleNameMapper: {
10+
'^node-fetch$': '<rootDir>/jest/__mocks__/node-fetch.js'
11+
}
912
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// eslint-disable-next-line compat/compat
2+
const neverResolve = () => new Promise(() => {});
3+
module.exports = neverResolve;
4+
module.exports.default = neverResolve;

0 commit comments

Comments
 (0)