コード例 #1
0
 function cleanupAfterController() {
   const controller = document.querySelector(controllerTag);
   if (controller) {
     controller.remove();
   }
   const element = document.querySelector(elementTag);
   if (element) {
     element.remove();
   }
   cleanup();
 }
コード例 #2
0
ファイル: jestSetup.ts プロジェクト: influxdata/influxdb
afterEach(() => {
  cleanup()
})
コード例 #3
0
ファイル: cleanup.ts プロジェクト: screendriver/echooff.de
 return (t: Test) => {
   testCase(t);
   cleanup();
 };
コード例 #4
0
ファイル: plugin.ts プロジェクト: skidding/cosmos
export function cleanup() {
  rtl.cleanup();
  resetPlugins();
}