Repository navigation
v0.6.0
Minor Changes
-
#61
926352f- Each test now has adependencyHashof everything it runs in the project, beside the unchangedbodyHash: its own call
with its options, the hooks,test.use()and options of its file and of every describe around it, the fixtures it,
those hooks, conditions andtest.use()values ask for, with the fixtures those ask for,autoones and overrides of
Playwright's own, through everyextend()andmergeTests(), the file's other top-level code, the config and the
configs it builds on, setup files, global setup and teardown, the Playwright setup projects the test runs after, and the
snapshot files and screenshots it compares against, and the functions, classes, constants and modules all of these use,
followed by scope and through imports, re-exports, barrels,require(),import()and Vitest'svi.mock()with a
fixed path, with the code each module runs when it loads. A helper that declares the test is in it with the arguments of
the call that declares it, so two calls give two hashes. Formatting and comments don't change it, nor does moving the
test. Installed packages are left out, and types too, except for type tests.dependencieslists the files that went into the hash. When the test reaches something the scan can't follow, a local
file that is missing or doesn't parse, an import with a path worked out at run time or a pattern, a value only a
declaration file describes, or a setup file the config names in a way the scan can't work out,
hasUnfollowedDependenciesistrueand the newdependency-not-followedwarning says where, once per place. -
#65
31a9bee---related <file>and therelatedfilter offilterInventory()keep the tests a change to a file can affect: those
whosedependenciesinclude it, and those that reach code the scan can't follow, which a change may affect unseen.
--related -reads the files from standard input, one per line, sogit diff --name-only origin/main... | npx test-inventory --framework playwright --related -lists the tests a pull request can affect. Paths are taken from the
current folder, as git writes them, also when--rootis a folder in the repository.