-
Notifications
You must be signed in to change notification settings - Fork 3
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
add jest dom dependency #220
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// type-only import, because in runtime it tries to access Jest globals, which do not exist | ||
/// <reference types="@testing-library/jest-dom" /> | ||
import matchers from "@testing-library/jest-dom/matchers"; | ||
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. Followed example setup from this thread: testing-library/jest-dom#439 |
||
import { expect } from "vitest"; | ||
|
||
expect.extend(matchers); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ | |
"experimentalDecorators": true, | ||
"tsBuildInfoFile": "../../.cache/test-utils.tsbuildinfo" | ||
}, | ||
"include": ["./", "../../types"] | ||
"include": ["./", "./types"] | ||
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. Created separate |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
declare module "*.css.js" { | ||
const styles: Record<string, string>; | ||
export default styles; | ||
} | ||
declare module "*.selectors.js" { | ||
const styles: Record<string, string>; | ||
export default styles; | ||
} |
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.
This is e2e-only export, extracted separately now