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

kitchen-sink example fails on tests #466

Closed
hyeomans opened this issue Dec 30, 2021 · 1 comment · Fixed by #473
Closed

kitchen-sink example fails on tests #466

hyeomans opened this issue Dec 30, 2021 · 1 comment · Fixed by #473

Comments

@hyeomans
Copy link

What version of Turborepo are you using?

latest

What package manager are you using / does the bug impact?

Yarn v1

What operating system are you using?

Mac

Describe the Bug

When running yarn test on examples/kitchen-sink fails with:

ui:test:     src/__tests__/index.test.tsx:7:17 - error TS2584: Cannot find name 'document'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.

ui:test:     7     const div = document.createElement("div");
ui:test:                       ~~~~~~~~

ui:test: Test Suites: 1 failed, 1 total
ui:test: Tests:       0 total
ui:test: Snapshots:   0 total
ui:test: Time:        2.321 s
ui:test: Ran all test suites.
ui:test: error Command failed with exit code 1.
ui:test: Error: command finished with error: exit status 1
child_process.js:830
    throw err;
    ^

Expected Behavior

Tests should pass

To Reproduce

  • Download examples/kitchen-sink
  • cd examples/kitchen-sink && yarn install && yarn test
@kbenrafik
Copy link
Contributor

I can reproduce the same issue.
I've created a fix for it: #473

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants