Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@astrojs/sitemap": "^3.7.3",
"@rslib/core": "0.23.1",
"@rslint/core": "^0.6.4",
"@rstackjs/test-utils": "^0.2.0",
"@rstest/core": "^0.10.6",
"@types/fs-extra": "^11.0.4",
"@types/node": "24.13.2",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
allowBuilds:
core-js: false
minimumReleaseAgeExclude:
- '@rstackjs/*'
14 changes: 4 additions & 10 deletions tests/prebundle.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { afterAll, beforeAll, describe, expect, it } from '@rstest/core';
import { prepareDist } from '@rstackjs/test-utils';
import { execFile } from 'node:child_process';
import { promises as fs, readdirSync } from 'node:fs';
import { readdirSync } from 'node:fs';
import { join, relative, sep } from 'node:path';
import { pathToFileURL } from 'node:url';
import { promisify } from 'node:util';
Expand Down Expand Up @@ -46,14 +47,14 @@ beforeAll(async () => {
for (const target of targetPackages) {
const distPath = join(process.cwd(), 'compiled', target.name);
bundledPaths.set(target.name, distPath);
await resetDist(distPath);
await prepareDist(distPath);
}
await runPrebundle();
});

afterAll(async () => {
for (const distPath of bundledPaths.values()) {
await resetDist(distPath);
await prepareDist(distPath);
}
});

Expand All @@ -67,13 +68,6 @@ describe('prebundle integration smoke tests', () => {
});
});

async function resetDist(distPath?: string) {
if (!distPath) {
return;
}
await fs.rm(distPath, { recursive: true, force: true });
}

function readRelativeFileTree(distPath: string) {
const results: string[] = [];
const walk = (dir: string) => {
Expand Down
Loading