10 lines
325 B
JavaScript
10 lines
325 B
JavaScript
/**
|
|
* Registers the CSS stub for the test runner.
|
|
*
|
|
* Loaded with `node --import`, which has to happen before any test module is
|
|
* evaluated — a hook registered later cannot intercept an import that has
|
|
* already been resolved.
|
|
*/
|
|
import { register } from 'node:module';
|
|
register('./css-hooks.mjs', import.meta.url);
|