Add a globals
option to configure automatically installed globals
#1139
Labels
effort-medium
This may take a couple of days
enhancement
A new or improved feature
needs-opinions
Needs opinions to decide how to handle
Allow test interfaces and assertions to be added to the global namespace, making testing writing simpler.
By default, the only thing added to the global space should be the existing
intern
object.A
globals
config option should allow the user to specify one of the built-in interfaces and/or one of the built-in assertion modules to be added to the global namespace.To support typing,
.d.ts
files should be added to aglobals
directory in the intern package that declare these globals. A tsconfig could then include relevant ones:The text was updated successfully, but these errors were encountered: