-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fix(bunfig): fix and test preloads #16329
base: main
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
46741e1
to
6afdbbc
Compare
9f6b1e4
to
0d6749a
Compare
6afdbbc
to
cd45010
Compare
expect(code).toBe(0); | ||
}); | ||
|
||
// FIXME: relative paths are being resolved to cwd, not the file's directory |
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 is a bug.
// | ||
"--preload ./preload3.ts", | ||
"--preload=./preload3.ts", | ||
// FIXME: Tests are failing due to active bugs |
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.
These are bugs. The last pair suffers the same problem as --config
. At the very least, run --preload=./file.ts
should be allowed.
describe("Given a `bunfig.toml` file with a relative path without a leading './'", () => { | ||
const dir = fixturePath("relative"); | ||
|
||
// FIXME: currently treaded as an import to an external package |
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 is a bug.
43da5d5
to
af01c9d
Compare
af01c9d
to
58d60bc
Compare
What does this PR do?
Preloads are currently problematic (#16289, etc). I'm adding a bunch of tests for them (in this PR) and fixing what I find (in upstack PRs)
Please review the tests I've added and give feedback on expected behavior.
How did you verify your code works?
These are all test changes.