Skip to content

Commit 2b7e620

Browse files
committed
only sveltekit pls
1 parent 25dfa7e commit 2b7e620

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

examples/hackernews/__integration-tests__/hackernews.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ import { schema } from '../src/schema.js';
1010
const connectionString =
1111
process.env['PG_CONNECTION_STRING'] ??
1212
'postgres://postgres:postgres@localhost:5432/postgres?currentSchema=integrationTests';
13-
console.log(connectionString);
14-
export async function resetDatabase(db: NodePgDatabase, schema: string) {
15-
console.log(schema);
13+
14+
async function resetDatabase(db: NodePgDatabase, schema: string) {
1615
// sql query for resetting the database
1716
const query = sql`
1817
DROP SCHEMA IF EXISTS ${sql.raw(schema)} CASCADE;

examples/sveltekit/__integration-tests__/sveltekit.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('SvelteKit integration', () => {
7676
} catch (error) {}
7777

7878
// Build svelteKit
79-
execSync('pnpm --filter example-sveltekit build');
79+
execSync('pnpm --filter example-sveltekit build', { stdio: 'inherit' });
8080

8181
// Start sveltekit
8282
sveltekitProcess = spawn('pnpm', ['--filter', 'example-sveltekit', 'preview']);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"release": "pnpm build && changeset publish",
4444
"start:docs": "pnpm --filter=website dev",
4545
"test": "jest --detectOpenHandles",
46-
"test:integration": "cross-env INTEGRATION_TEST=true jest --forceExit",
46+
"test:integration": "cross-env INTEGRATION_TEST=true jest --forceExit sveltekit",
4747
"test:leaks": "cross-env LEAKS_TEST=true pnpm run test --detectLeaks --logHeapUsage && cross-env LEAKS_TEST=true pnpm run test:integration --detectLeaks --logHeapUsage"
4848
},
4949
"devDependencies": {

0 commit comments

Comments
 (0)