Skip to content

Commit 850bee1

Browse files
committed
ci: test CI
1 parent 167fb14 commit 850bee1

File tree

3 files changed

+11
-23
lines changed

3 files changed

+11
-23
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"devDependencies": {
3535
"@astrojs/sitemap": "^3.7.0",
3636
"@rslib/core": "0.19.4",
37-
"@rstest/core": "^0.8.2",
37+
"@rstest/core": "https://pkg.pr.new/web-infra-dev/rstest/@rstest/core@7b64c24bad5a4691753ee91eb695bba40e7cf1be",
3838
"@types/fs-extra": "^11.0.4",
3939
"@types/node": "22.19.8",
4040
"chalk": "^5.6.2",

pnpm-lock.yaml

Lines changed: 7 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/prebundle.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { afterAll, beforeAll, describe, expect, it, rs } from '@rstest/core';
1+
import { afterAll, beforeAll, describe, expect, it } from '@rstest/core';
22
import { execFile } from 'node:child_process';
33
import { promises as fs, readdirSync } from 'node:fs';
44
import { join, relative, sep } from 'node:path';
@@ -19,13 +19,13 @@ const targetPackages: TargetPackage[] = [
1919
{
2020
name: 'chalk',
2121
verify: async (distPath: string) => {
22-
rs.stubEnv('FORCE_COLOR', '1');
22+
// rs.stubEnv('FORCE_COLOR', '1');
2323
const mod = await loadBundledModule(distPath);
2424
const chalkInstance = mod.default ?? mod;
2525
const message = chalkInstance.hex('#00ff88')('prebundle-ready');
2626
expect(message).toContain('prebundle-ready');
2727
expect(message).toContain('\u001b[');
28-
rs.unstubAllEnvs();
28+
// rs.unstubAllEnvs();
2929
},
3030
},
3131
{

0 commit comments

Comments
 (0)