mistykey/packages/backend/test/jest.setup.unit.mjs
Hazelnoot d6071853ca fix TS errors when checking unit tests
(it was loading the setup files, then following the imports into "built" directory. as those are compiled JS, it produced lots of type errors.)
2025-11-11 23:13:11 -05:00

16 lines
444 B
JavaScript

/*
* SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
// Need to reference the built file
import { prepEnv } from '../built/boot/prepEnv.js';
/**
* Applies the Sharkey environment details into the test environment.
* https://jestjs.io/docs/configuration#globalsetup-string
*/
export default function setup() {
// Make sure tests run in the Sharkey environment.
prepEnv();
}