From 4a0dec2805a408ee1cfc8d5254aeb31690a73226 Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Fri, 7 Jun 2024 11:40:19 +0200 Subject: [PATCH] update test --- test/integration/generate/models.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/integration/generate/models.test.ts b/test/integration/generate/models.test.ts index fb5c467738c..d02be248814 100644 --- a/test/integration/generate/models.test.ts +++ b/test/integration/generate/models.test.ts @@ -1,9 +1,19 @@ import { expect, test } from '@oclif/test'; import path from 'path'; +import rimraf from 'rimraf'; +import { createMockServer, stopMockServer } from '../../helpers'; const generalOptions = ['generate:models']; const outputDir = './test/fixtures/generate/models'; describe('models', () => { + before(() => { + createMockServer(); + }); + after(() => { + stopMockServer(); + rimraf.sync(outputDir); + }); + test .stderr() .stdout()