Update paths to legacy/plugins (#39721) (#39900)

* Update paths to legacy/plugins

* Disable Code server test runs
This commit is contained in:
Corey Robertson 2019-06-28 11:28:51 -04:00 committed by GitHub
parent 0774415e40
commit 6b1e6fe2dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,14 +20,15 @@ function getPluginPaths(plugins, opts = {}) {
const serverPath = `${plugin}/**/server`;
const publicPath = `${plugin}/**/public`;
const indexPaths = `plugins/${plugin}/${testPath}/*.js`; // index and helpers
const commonPaths = `plugins/${commonPath}/**/${testPath}/*.js`;
const serverPaths = `plugins/${serverPath}/**/${testPath}/*.js`;
const publicPaths = `plugins/${publicPath}/**/${testPath}/*.js`;
const indexPaths = `legacy/plugins/${plugin}/${testPath}/*.js`; // index and helpers
const commonPaths = `legacy/plugins/${commonPath}/**/${testPath}/*.js`;
const serverPaths = `legacy/plugins/${serverPath}/**/${testPath}/*.js`;
const publicPaths = `legacy/plugins/${publicPath}/**/${testPath}/*.js`;
paths = paths.concat([indexPaths, commonPaths, serverPaths]);
if(plugin === 'code') {
paths.push(`plugins/${serverPath}/**/${testPath}/*.ts`);
if (plugin === 'code') {
// TODO: Fix and reenable Code test
// paths.push(`legacy/plugins/${serverPath}/**/${testPath}/*.ts`);
}
if (opts.browser) {
paths = paths.concat(publicPaths);