From d2b267e6839cb78daa3dc2a9fca644417da89251 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 6 Apr 2020 12:12:48 +0200 Subject: [PATCH] Reset process.cwd after cds run --- test/_cds_tests.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/_cds_tests.js b/test/_cds_tests.js index 38c63080..48c33c6a 100644 --- a/test/_cds_tests.js +++ b/test/_cds_tests.js @@ -5,6 +5,7 @@ //////////////////////////////////////////////////////////////////////////// const { resolve, dirname } = require('path') +const cwd = process.cwd() // harmonizing jest and mocha const is_mocha = !global.test @@ -120,6 +121,7 @@ class CDSTestKit { // shutdown cds server... after (done => { if (global.console !== console) global.console = console + if (cwd !== process.cwd()) process.chdir(cwd) test.server ? test.server.close (done) : done() })