-
Notifications
You must be signed in to change notification settings - Fork 32
feat: move the module to be esm #221
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 11 commits
3a1da09
a713c4b
1fd3662
f831101
fbdf8eb
313c11e
7af8d36
95bb927
b62ec0d
c25bba2
f2158eb
f8a83ab
af9fb98
34e5b69
ca6c9bb
a22cd00
da13fce
6626a62
e2c6877
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 | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,7 +2,8 @@ | |||||||
| "name": "@testing-library/svelte", | ||||||||
| "version": "0.0.0-semantically-released", | ||||||||
| "description": "Simple and complete Svelte testing utilities that encourage good testing practices.", | ||||||||
| "main": "dist/index.js", | ||||||||
| "main": "src/index.js", | ||||||||
yanick marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
| "type": "module", | ||||||||
| "types": "types/index.d.ts", | ||||||||
| "license": "MIT", | ||||||||
| "homepage": "https://github.com/testing-library/svelte-testing-library#readme", | ||||||||
|
|
@@ -29,21 +30,20 @@ | |||||||
| "e2e" | ||||||||
| ], | ||||||||
| "files": [ | ||||||||
| "dist", | ||||||||
|
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. Does probably also need
Collaborator
Author
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. True! |
||||||||
| "src/pure.js", | ||||||||
| "src/index.js", | ||||||||
|
||||||||
| "src/pure.js", | |
| "src/index.js", | |
| "src/", |
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.
Point. Done!
Outdated
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.
I don't think you need this since it's in src now. not sure what dont-cleanup-after-each is and whether you need that one or not
| "pure.js", |
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.
Removed both. dont-cleanup-after-each seems to be a helper package for setting the env variable that is not used anywhere anyway.
Outdated
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.
I think this one is no longer maintained so folks use eslint-plugin-n now
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.
Good to know! Done!
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| // Makes it so people can import from '@testing-library/svelte/pure' | ||
| module.exports = require('./dist/pure') | ||
| import './src/pure.js' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| // Jest Snapshot v1, https://goo.gl/fbAQLP | ||
| // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
|
||
| exports[`auto-cleanup-skip second 1`] = `"<div><h1 data-testid=\\"test\\">Hello world!</h1> <div>we have undefined</div> <button>Button</button></div>"`; | ||
| exports[`auto-cleanup-skip > second 1`] = `""`; |
Uh oh!
There was an error while loading. Please reload this page.