-
Notifications
You must be signed in to change notification settings - Fork 6
ci: test CI #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: test CI #48
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| import { afterAll, beforeAll, describe, expect, it, rs } from '@rstest/core'; | ||
| import { afterAll, beforeAll, describe, expect, it } from '@rstest/core'; | ||
| import { execFile } from 'node:child_process'; | ||
| import { promises as fs, readdirSync } from 'node:fs'; | ||
| import { join, relative, sep } from 'node:path'; | ||
|
|
@@ -19,13 +19,13 @@ const targetPackages: TargetPackage[] = [ | |
| { | ||
| name: 'chalk', | ||
| verify: async (distPath: string) => { | ||
| rs.stubEnv('FORCE_COLOR', '1'); | ||
| // rs.stubEnv('FORCE_COLOR', '1'); | ||
| const mod = await loadBundledModule(distPath); | ||
| const chalkInstance = mod.default ?? mod; | ||
| const message = chalkInstance.hex('#00ff88')('prebundle-ready'); | ||
| expect(message).toContain('prebundle-ready'); | ||
| expect(message).toContain('\u001b['); | ||
| rs.unstubAllEnvs(); | ||
| // rs.unstubAllEnvs(); | ||
|
Comment on lines
+22
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Commenting out If const originalForceColor = process.env.FORCE_COLOR;
try {
process.env.FORCE_COLOR = '1';
const mod = await loadBundledModule(distPath);
const chalkInstance = mod.default ?? mod;
const message = chalkInstance.hex('#00ff88')('prebundle-ready');
expect(message).toContain('prebundle-ready');
expect(message).toContain('\u001b[');
} finally {
process.env.FORCE_COLOR = originalForceColor;
} |
||
| }, | ||
| }, | ||
| { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a direct URL to a specific commit for a dependency is not recommended for merging into a main branch. This approach is brittle, as the commit can become unavailable, and it bypasses standard package versioning, making dependency management and security auditing difficult. While this might be acceptable for temporary CI testing, it should be reverted to a proper version from a package registry before merging.