Skip to content

Commit 0e724ed

Browse files
committed
test: auto-cleanup
1 parent 4f179b4 commit 0e724ed

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { Component } from '@angular/core';
2+
import { render } from '../src/public_api';
3+
4+
@Component({
5+
selector: 'fixture',
6+
template: `
7+
Hello!
8+
`,
9+
})
10+
class FixtureComponent {}
11+
12+
test('first', async () => {
13+
await render(FixtureComponent);
14+
});
15+
16+
test('second', () => {
17+
expect(document.body.innerHTML).toEqual('');
18+
});

projects/testing-library/tsconfig.lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"emitDecoratorMetadata": true,
1212
"experimentalDecorators": true,
1313
"importHelpers": true,
14-
"types": ["./types", "@types/node"],
14+
"types": ["@types/jest", "@types/node"],
1515
"lib": ["dom", "es2015", "es2018.promise"]
1616
},
1717
"angularCompilerOptions": {

projects/testing-library/types.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)