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 a globals directory in the intern package that declare these globals. A tsconfig could then include relevant ones:
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: