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()