neon-testing 2.0.1-beta.5 → 2.0.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon-testing",
3
- "version": "2.0.1-beta.5",
3
+ "version": "2.0.1-beta.7",
4
4
  "description": "A Vitest utility for seamless integration tests with Neon Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -23,7 +23,7 @@
23
23
  "singleton.ts",
24
24
  "utils.ts",
25
25
  "vite-plugin.ts",
26
- "vitest-setup.ts"
26
+ "vitest-setup.js"
27
27
  ],
28
28
  "scripts": {
29
29
  "test": "vitest",
package/vite-plugin.ts CHANGED
@@ -7,7 +7,7 @@ export function neonTesting(): Plugin {
7
7
  enforce: "pre",
8
8
  config(user) {
9
9
  const setupPath = fileURLToPath(
10
- new URL("./vitest-setup.ts", import.meta.url),
10
+ new URL("./vitest-setup.js", import.meta.url),
11
11
  );
12
12
 
13
13
  const setup = new Set([...(user.test?.setupFiles ?? []), setupPath]);
@@ -1,5 +1,4 @@
1
- const isVitest =
2
- process.env.VITEST === "true" || !!process.env.VITEST_WORKER_ID;
1
+ const isVitest = process.env.VITEST;
3
2
 
4
3
  if (isVitest) {
5
4
  if (process.env.DATABASE_URL) {