Clear process variable after test

This commit is contained in:
Christian Georgi
2021-07-13 08:36:05 +02:00
parent 3655eef971
commit 85b9b9d3a3

View File

@@ -5,6 +5,7 @@ import * as cds from '@sap/cds';
const {GET} = cds.test.in(__dirname,'../hello').run('serve', 'world.cds')
describe('Hello world!', () => {
afterAll(() => { delete process.env.CDS_TYPESCRIPT; });
it('should say hello with class impl from a typescript file', async () => {
const {data} = await GET`/say/hello(to='world')`