Skip to content

Commit 61a27bc

Browse files
committed
chore: more work to scaffold angular testing
1 parent a9c5718 commit 61a27bc

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
it('Should be true', () => {
2-
expect(true).toBe(true)
1+
import { Component } from '@angular/core'
2+
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();
315
})

0 commit comments

Comments
 (0)