Skip to content

Commit 058386d

Browse files
committed
fixup! refactor: stronger typing of inputs
1 parent 5a90c4c commit 058386d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

projects/testing-library/tests/render.spec.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,14 @@ describe('inputs and signals', () => {
563563
// so we are purposely not calling render
564564

565565
const typeTests = [
566+
async () => {
567+
// OK:
568+
await render(InputComponent, {
569+
inputs: {
570+
myName: 'OK',
571+
},
572+
});
573+
},
566574
async () => {
567575
// @ts-expect-error - myName is a string
568576
await render(InputComponent, {
@@ -571,6 +579,14 @@ describe('inputs and signals', () => {
571579
},
572580
});
573581
},
582+
async () => {
583+
// OK:
584+
await render(InputComponent, {
585+
inputs: {
586+
job: aliasedInputWithValue('OK'),
587+
},
588+
});
589+
},
574590
async () => {
575591
// @ts-expect-error - job is not using aliasedInputWithValue
576592
await render(InputComponent, {

0 commit comments

Comments
 (0)