File tree Expand file tree Collapse file tree
2020-12/object_with_additional_properties Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { Person } from "./expected" ;
2+
3+ const person : Person = {
4+ name : "John Doe"
5+ } ;
6+
7+ const invalidPerson : Person = {
8+ // @ts -expect-error
9+ name : 123
10+ } ;
Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ foreach(DIALECT_DIRECTORY ${TYPESCRIPT_DIALECT_DIRECTORIES})
2727 list (APPEND E2E_SCHEMAS "${CASE_DIRECTORY} /schema.json" )
2828 add_test (NAME "e2e.typescript.tsc.${DIALECT_NAME} .${CASE_NAME} /expected.d.ts"
2929 COMMAND "${TSC_BIN} " --noEmit "${CASE_DIRECTORY} /expected.d.ts" )
30+
31+ # TODO: Make this required for every case
32+ if (EXISTS "${CASE_DIRECTORY} /test.ts" )
33+ add_test (NAME "e2e.typescript.tsc.${DIALECT_NAME} .${CASE_NAME} /test.ts"
34+ COMMAND "${TSC_BIN} " --noEmit "${CASE_DIRECTORY} /test.ts" )
35+ endif ()
3036 endif ()
3137 endforeach ()
3238 endif ()
You can’t perform that action at this time.
0 commit comments