Skip to content
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

windows bun test workspace import error: Unexpected reading #11003

Closed
zavx0z opened this issue May 11, 2024 · 3 comments
Closed

windows bun test workspace import error: Unexpected reading #11003

zavx0z opened this issue May 11, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@zavx0z
Copy link

zavx0z commented May 11, 2024

What version of Bun is running?

1.1.8+89d25807f

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

    ├───a
    └───b
        └───tests
import { describe, it, expect } from "bun:test"
import { testFun as testImportPackageA } from "a"
describe("simple", () => {
  it("works", () => {
    expect(testImportPackageA()).toBe(4)
  })
})

run tests in directory workspace/packages/b

bun test
bun test v1.1.8 (89d25807)

tests\simple.spec.ts:
error: Unexpected reading "C:\workspace\node_modules\a"

 0 pass
 1 fail
Ran 1 tests across 1 files. [40.00ms]

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

WSL worked

:~/workspace/packages/b$ bun test
bun test v1.1.8 (89d25807)

tests/simple.spec.ts:
Hello via a package A!
✓ simple > works [0.10ms]

 1 pass
 0 fail
 1 expect() calls
Ran 1 tests across 1 files. [18.00ms]
@zavx0z zavx0z added the bug Something isn't working label May 11, 2024
@pashaie
Copy link

pashaie commented May 13, 2024

same problem

@Jarred-Sumner
Copy link
Collaborator

Duplicate of #10469

@Jarred-Sumner Jarred-Sumner marked this as a duplicate of #10469 May 14, 2024
@Jarred-Sumner
Copy link
Collaborator

Closing as duplicate, please follow along in #10469

@Jarred-Sumner Jarred-Sumner closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants