Skip to content

Commit 910dbeb

Browse files
committed
test(console-ai): pay the layout's lint preflight load at collection in the edited layout tests
check:test-source-alias judges edited test files: ConsoleLayout reaches import('@objectstack/lint') through the draft bar's publish preflight, so each edited test that mounts it loads the module at module top. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzidTEhaEGRzboS7xTa
1 parent 9c18bb8 commit 910dbeb

5 files changed

Lines changed: 15 additions & 0 deletions

‎ui/packages/app-shell/src/chrome/KeyboardShortcutsDialog.wiredOnly-11674.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
*/
3333

3434
import '@testing-library/jest-dom/vitest';
35+
// The layout reaches `import('@objectstack/lint')` (the draft bar's publish
36+
// preflight); pay its first load at collection, never inside a clocked case.
37+
import '@objectstack/lint';
3538
import { describe, it, expect, vi, afterEach } from 'vitest';
3639
import React, { useState } from 'react';
3740
import { render, screen, fireEvent, cleanup, waitFor, act } from '@testing-library/react';

‎ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.appBrandingLogo-10827.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
*/
3131

3232
import '@testing-library/jest-dom/vitest';
33+
// The layout reaches `import('@objectstack/lint')` (the draft bar's publish
34+
// preflight); pay its first load at collection, never inside a clocked case.
35+
import '@objectstack/lint';
3336
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
3437
import React from 'react';
3538
import { render, cleanup, within } from '@testing-library/react';

‎ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.dockBinding-10926.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
*/
1717

1818
import '@testing-library/jest-dom/vitest';
19+
// The layout reaches `import('@objectstack/lint')` (the draft bar's publish
20+
// preflight); pay its first load at collection, never inside a clocked case.
21+
import '@objectstack/lint';
1922
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
2023
import React from 'react';
2124
import { act, cleanup, render } from '@testing-library/react';

‎ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.previewFrameDock-26470.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
*/
2121

2222
import '@testing-library/jest-dom/vitest';
23+
// The layout reaches `import('@objectstack/lint')` (the draft bar's publish
24+
// preflight); pay its first load at collection, never inside a clocked case.
25+
import '@objectstack/lint';
2326
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
2427
import React from 'react';
2528
import { render, screen, fireEvent, cleanup } from '@testing-library/react';

‎ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.robotTogglesDrawer-34608.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*/
2020

2121
import '@testing-library/jest-dom/vitest';
22+
// The layout reaches `import('@objectstack/lint')` (the draft bar's publish
23+
// preflight); pay its first load at collection, never inside a clocked case.
24+
import '@objectstack/lint';
2225
import { describe, it, expect, vi, afterEach } from 'vitest';
2326
import React from 'react';
2427
import { render, screen, fireEvent, cleanup } from '@testing-library/react';

0 commit comments

Comments
 (0)