-
Notifications
You must be signed in to change notification settings - Fork 59
Fix bug in getElementType
logic
#525
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 1 commit
ca7a3c3
9deac20
f7d1592
9600041
e6f3c9e
d134206
dd592c6
9d2dc5d
3979a24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import {expect} from 'chai' | ||
import {getElementType} from '../../lib/utils/get-element-type' | ||
import {mockJSXAttribute, mockJSXConditionalAttribute, mockJSXOpeningElement} from './mocks' | ||
import {getElementType} from '../../lib/utils/get-element-type.js' | ||
import {mockJSXAttribute, mockJSXConditionalAttribute, mockJSXOpeningElement} from './mocks.js' | ||
Comment on lines
+2
to
+3
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. Apparently I need to add the
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.
I wonder if that's why? 🫤 |
||
|
||
const mocha = require('mocha') | ||
const describe = mocha.describe | ||
const it = mocha.it | ||
import {describe, it} from 'mocha' | ||
|
||
function mockSetting(componentSetting = {}) { | ||
return { | ||
|
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.
In order for the JS files to be loaded into
.mjs
, we need an extension.This library seems to be using a mix of module JS and common JS now, so we'll want to turn this rule off.