@stacksjs/testing 0.75.366 → 0.75.369

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.
Files changed (2) hide show
  1. package/dist/schema.js +4 -0
  2. package/package.json +11 -11
package/dist/schema.js ADDED
@@ -0,0 +1,4 @@
1
+ // @bun
2
+ async function r(t){if(!t.length)return;let{db:o,getDatabaseDialect:s}=await import("@stacksjs/database/runtime"),e=s();if(e!=="sqlite"&&e!=="postgres")throw Error("Atomic test schema setup requires SQLite or PostgreSQL");await o.transaction(async(i)=>{if(e==="postgres")await i.unsafe(t.map((a)=>`${a}
3
+ ;`).join(`
4
+ `));else for(let a of t)await i.unsafe(a)})}export{r as applyTestSchema};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/testing",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.366",
5
+ "version": "0.75.369",
6
6
  "description": "The Stacks way of testing.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -79,16 +79,16 @@
79
79
  "prepublishOnly": "bun run build"
80
80
  },
81
81
  "dependencies": {
82
- "@stacksjs/auth": "0.75.366",
83
- "@stacksjs/cache": "0.75.366",
84
- "@stacksjs/config": "0.75.366",
85
- "@stacksjs/database": "0.75.366",
86
- "@stacksjs/email": "0.75.366",
87
- "@stacksjs/events": "0.75.366",
88
- "@stacksjs/path": "0.75.366",
89
- "@stacksjs/router": "0.75.366",
90
- "@stacksjs/storage": "0.75.366",
91
- "@stacksjs/strings": "0.75.366",
82
+ "@stacksjs/auth": "0.75.369",
83
+ "@stacksjs/cache": "0.75.369",
84
+ "@stacksjs/config": "0.75.369",
85
+ "@stacksjs/database": "0.75.369",
86
+ "@stacksjs/email": "0.75.369",
87
+ "@stacksjs/events": "0.75.369",
88
+ "@stacksjs/path": "0.75.369",
89
+ "@stacksjs/router": "0.75.369",
90
+ "@stacksjs/storage": "0.75.369",
91
+ "@stacksjs/strings": "0.75.369",
92
92
  "@stacksjs/ts-cloud": "^0.16.69",
93
93
  "very-happy-dom": "^0.4.1"
94
94
  },