diff --git a/src/test/unittest/index.ts b/src/test/unittest/index.ts index 640db77a..d1934133 100644 --- a/src/test/unittest/index.ts +++ b/src/test/unittest/index.ts @@ -3,10 +3,6 @@ import * as Mocha from 'mocha'; import * as glob from 'glob'; export function run(): Promise { - if ((Reflect as any).metadata === undefined) { - require('reflect-metadata'); - } - process.env.VSC_PYTHON_UNIT_TEST = '1'; // Create the mocha test const mocha = new Mocha({ diff --git a/src/test/unittests.ts b/src/test/unittests.ts index 22759796..e4cfdedc 100644 --- a/src/test/unittests.ts +++ b/src/test/unittests.ts @@ -14,10 +14,6 @@ if (os.platform() === 'win32') { }); } -if ((Reflect as any).metadata === undefined) { - require('reflect-metadata'); -} - process.env.VSC_PYTHON_CI_TEST = '1'; process.env.VSC_PYTHON_UNIT_TEST = '1'; process.env.NODE_ENV = 'production'; // Make sure react is using production bits or we can run out of memory.