-
Notifications
You must be signed in to change notification settings - Fork 10
test: fix unstable test cases #85
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| node_modules | ||
| dist/ | ||
| test-results | ||
| test-temp-* | ||
|
|
||
| # IDE | ||
| .vscode/* | ||
|
|
||
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,11 +2,11 @@ import fs from 'node:fs'; | |||||
| import path from 'node:path'; | ||||||
| import { fileURLToPath } from 'node:url'; | ||||||
| import { assert, beforeEach, expect, test } from '@rstest/core'; | ||||||
| import { create } from '../dist/index.js'; | ||||||
| import { create } from '../src'; | ||||||
|
|
||||||
| const __dirname = path.dirname(fileURLToPath(import.meta.url)); | ||||||
| const testDir = path.join(__dirname, 'temp'); | ||||||
| const fixturesDir = path.join(__dirname, 'fixtures', 'agents-md'); | ||||||
| const testDir = path.join(fixturesDir, 'test-temp-output'); | ||||||
|
||||||
| const testDir = path.join(fixturesDir, 'test-temp-output'); | |
| const testDir = path.join(__dirname, 'test-temp-output'); |
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.
This test imports from
../srcinstead of../dist/index.js, which is inconsistent withtest/index.test.tsthat imports from../dist/index.js. Consider using the same import path across test files for consistency, especially since the built distribution is what will be published.