Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d0ee821

Browse files
committed
ts-ignore
Just to make the 'yarn build' script happy. Even though the test isn't needed for the build, it first validates all files with 'tsc --noEmit'. I couldn't find a way to exclude the test files in this case, so just added an ignore.
1 parent 819ee81 commit d0ee821

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎spec/index.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ describe('#nestedForm', (): void => {
4848
const controllerElement: HTMLButtonElement = document.querySelector("[data-controller='nested-form']")
4949
const addButton: HTMLButtonElement = document.querySelector("[data-action='nested-form#add']")
5050

51+
// @ts-ignore following line
5152
jest.spyOn(global, 'Event').mockImplementation((type: string, eventInit?: any) => ({ type, eventInit }))
5253
const mockDispatchEvent = jest.spyOn(controllerElement, 'dispatchEvent').mockImplementation(() => true)
5354

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /