MCPcopy Create free account
hub / github.com/dataform-co/dataform / context

Method context

testing/suite.ts:133–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 }
132
133 private context(): ISuiteContext {
134 // The any types here are required due to method overloads.
135 return {
136 suite: ((...args: [any, any, any]) => this.addSuite(Suite.create(...args))) as typeof suite,
137 test: ((...args: [any, any, any]) => this.addTest(Test.create(...args))) as typeof test,
138 beforeEach: ((...args: [any, any, any]) =>
139 this.addHook(this.beforeEaches, Hook.create(...args))) as typeof hook,
140 afterEach: ((...args: [any, any, any]) =>
141 this.addHook(this.afterEaches, Hook.create(...args))) as typeof hook,
142 before: ((...args: [any, any, any]) =>
143 this.addHook(this.setUps, Hook.create(...args))) as typeof hook,
144 after: ((...args: [any, any, any]) =>
145 this.addHook(this.tearDowns, Hook.create(...args))) as typeof hook
146 };
147 }
148}

Callers 1

constructorMethod · 0.95

Calls 4

addSuiteMethod · 0.95
addTestMethod · 0.95
addHookMethod · 0.95
createMethod · 0.65

Tested by

no test coverage detected