You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: SchemaTree mock leak and a test that can't fail #890
A mock leaks between tests. In src/components/schema/__tests__/SchemaTree.test.tsx, the "shows a table's DDL…" test (around line 691) calls useResultStore.setState({ executeQuery }) with a mock and never restores it. Every later test in the file runs against that mock, so a test that depends on the real executeQuery can pass or fail depending on file order.
A test that always passes.src/components/designer/__tests__/TableDesigner.test.tsx:123 assigns initialCount and never uses it (this is the lint warning 'initialCount' is assigned a value but never used). The assertion is >= 0, which can't fail, so the test checks nothing.
Activity
test: restore mocked executeQuery, fix dead test