mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
add sqlocal connection including example
This commit is contained in:
36
packages/sqlocal/vitest.config.ts
Normal file
36
packages/sqlocal/vitest.config.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/// <reference types="vitest" />
|
||||
/// <reference types="@vitest/browser/providers/webdriverio" />
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// https://github.com/DallasHoff/sqlocal/blob/main/vite.config.ts
|
||||
export default defineConfig({
|
||||
test: {
|
||||
testTimeout: 1000,
|
||||
hookTimeout: 1000,
|
||||
teardownTimeout: 1000,
|
||||
includeTaskLocation: true,
|
||||
browser: {
|
||||
enabled: true,
|
||||
headless: true,
|
||||
screenshotFailures: false,
|
||||
provider: "webdriverio",
|
||||
instances: [{ browser: "chrome" }],
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ["@sqlite.org/sqlite-wasm"],
|
||||
},
|
||||
plugins: [
|
||||
{
|
||||
enforce: "pre",
|
||||
name: "configure-response-headers",
|
||||
configureServer: (server) => {
|
||||
server.middlewares.use((_req, res, next) => {
|
||||
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
|
||||
res.setHeader("Cross-Origin-Opener-Policy", "same-origin");
|
||||
next();
|
||||
});
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user