v0.2.11 — setup file is test-setup.test.*, found by the ordinary test glob
Changed (BREAKING)
-
Test setup file renamed to
test-setup.test.{ts,tsx,js,jsx}, discovered anywhere your tests are. Thetest/test-setup.*convention from 0.2.7 was inconsistent: test files are discovered by glob (*.test.*co-located anywhere, or undertest/), but the setup file was pinned to a hardcodedtest/location — so a project that co-locates tests insrc/had nowhere to put one. The setup file now carries the.test.infix, so it's a*.test.*match found by the same discovery as every other test file — wherever your tests live — then recognized by name, excluded from the run, and imported first. One discovery mechanism, not two. More than onetest-setup.test.*is now an error (one global setup is the model).Migration: rename
test/test-setup.ts→test/test-setup.test.ts(or place it beside your tests anywhere).