Skip to content

Commit

Permalink
Merge branch 'master' of github.com:wixplosives/codux-core into nadav…
Browse files Browse the repository at this point in the history
…/api-fetchers
  • Loading branch information
nadavov committed Oct 20, 2024
2 parents 4c1b9e1 + 8b9e9c7 commit d3c2703
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 93 deletions.
162 changes: 81 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@file-services/node": "^9.4.1",
"@file-services/path": "^9.4.1",
"@file-services/resolve": "^9.4.1",
"@playwright/browser-chromium": "^1.48.0",
"@playwright/browser-chromium": "^1.48.1",
"@types/chai": "^4.3.20",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.9",
Expand All @@ -31,7 +31,7 @@
"chai": "^4.5.0",
"chai-as-promised": "^7.1.2",
"esbuild": "^0.24.0",
"eslint": "^9.12.0",
"eslint": "^9.13.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-react": "^7.37.1",
Expand All @@ -45,7 +45,7 @@
"rimraf": "^6.0.1",
"sinon": "^19.0.2",
"typescript": "~5.6.3",
"typescript-eslint": "^8.9.0"
"typescript-eslint": "^8.10.0"
},
"license": "MIT",
"private": true
Expand Down
9 changes: 7 additions & 2 deletions packages/app-core/test-kit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ export class AppDefDriver<MANIFEST_EXTRA_DATA = unknown, ROUTE_EXTRA_DATA = unkn
listener(this.lastManifest!);
}
}
async render({ uri = '/' }: { uri?: string } = {}) {
async render({
uri = '/',
testAutoRerenderOnManifestUpdate,
}: { uri?: string; testAutoRerenderOnManifestUpdate?: boolean } = {}) {
const { app } = this.options;
const { fsApi, importModule } = this;

Expand Down Expand Up @@ -175,7 +178,9 @@ export class AppDefDriver<MANIFEST_EXTRA_DATA = unknown, ROUTE_EXTRA_DATA = unkn
const manifestListener = () => {
void rerender({ uri: lastUri });
};
this.addManifestListener(manifestListener);
if (testAutoRerenderOnManifestUpdate !== false) {
this.addManifestListener(manifestListener);
}
return {
dispose: () => {
unmount();
Expand Down
Loading

0 comments on commit d3c2703

Please sign in to comment.