mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-04 19:11:57 +08:00
feat(client): migration old package to rspack (#15068)
#### PR Dependency Tree * **PR #15068** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Upgraded Vitest across packages to 4.1.8 and bumped Tailwind PostCSS to 4.3.0 * CLI/tooling updated to support the media-capture-playground package and adjust build/dev server behavior * **Bug Fixes** * Improved workspace deletion reliability in the Electron app * **Refactor** * Simplified media capture playground build setup (build/config adjustments) * **Tests** * Made tests more robust by preserving/restoring environment state during runs <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -327,6 +327,9 @@ test.after.always(async t => {
|
||||
});
|
||||
|
||||
test('reconciles quota states from entitlements and business tables', async t => {
|
||||
const previousDeploymentType = globalThis.env.DEPLOYMENT_TYPE;
|
||||
// @ts-expect-error test mutates env singleton for cloud entitlement semantics
|
||||
globalThis.env.DEPLOYMENT_TYPE = 'affine';
|
||||
const cases = [
|
||||
{
|
||||
name: 'owner fallback uses user entitlement and owner storage usage',
|
||||
@@ -444,10 +447,15 @@ test('reconciles quota states from entitlements and business tables', async t =>
|
||||
},
|
||||
];
|
||||
|
||||
for (const item of cases) {
|
||||
await t.context.module.initTestingDB();
|
||||
const state = await item.setup();
|
||||
await item.assert(state);
|
||||
try {
|
||||
for (const item of cases) {
|
||||
await t.context.module.initTestingDB();
|
||||
const state = await item.setup();
|
||||
await item.assert(state);
|
||||
}
|
||||
} finally {
|
||||
// @ts-expect-error restore mutable test env singleton
|
||||
globalThis.env.DEPLOYMENT_TYPE = previousDeploymentType;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user