diff --git a/tests/cli/tests/strapi/version/version.test.cli.js b/tests/cli/tests/strapi/version/version.test.cli.js deleted file mode 100644 index 914b74473e..0000000000 --- a/tests/cli/tests/strapi/version/version.test.cli.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -const coffee = require('coffee'); - -const utils = require('../../../utils'); - -describe('--version', () => { - let appPath; - let currentVersion; - - beforeAll(async () => { - const testApps = utils.instances.getTestApps(); - - appPath = testApps.at(0); - currentVersion = require(`${appPath}/package.json`).dependencies['@strapi/strapi']; - }); - - it('should output version with argument', async () => { - await coffee - .spawn('npm', ['run', '-s', 'strapi', '--', 'version'], { cwd: appPath }) - .expect('stderr', '') - .expect('stdout', `${currentVersion}\n`) - .expect('code', 0) - .end(); - }); - - it('should output version with --version', async () => { - await coffee - .spawn('npm', ['run', '-s', 'strapi', '--', '--version'], { cwd: appPath }) - .expect('stdout', `${currentVersion}\n`) - .expect('code', 0) - .end(); - }); -});