We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9c5718 commit 61a27bcCopy full SHA for 61a27bc
projects/angular-redux/src/tests/test.spec.ts
@@ -1,3 +1,15 @@
1
-it('Should be true', () => {
2
- expect(true).toBe(true)
+import { Component } from '@angular/core'
+import { render } from '@testing-library/angular'
3
+import '@testing-library/jest-dom'
4
+
5
+@Component({
6
+ selector: "app-root",
7
+ standalone: true,
8
+ template: "<p>Testing</p>"
9
+})
10
+class TestSpec {}
11
12
+it('Should render a component', async () => {
13
+ const {getByText} = await render(TestSpec)
14
+ expect(getByText("Testing")).toBeInTheDocument();
15
})
0 commit comments