mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
test: When testing plugins load only tested plugin
This commit is contained in:
parent
a7b9a2556c
commit
151e98f585
@ -18,6 +18,3 @@ functions:
|
||||
- http:
|
||||
path: foo
|
||||
method: POST
|
||||
|
||||
plugins:
|
||||
- serverless-offline
|
||||
|
||||
@ -11,11 +11,15 @@ describe('test/integration/curated-plugins.test.js', function () {
|
||||
this.timeout(1000 * 60 * 10); // Involves time-taking npm install
|
||||
|
||||
let serviceDir;
|
||||
let updateConfig;
|
||||
before(async () => {
|
||||
serviceDir = (await fixturesEngine.setup('curated-plugins')).servicePath;
|
||||
({ servicePath: serviceDir, updateConfig } = await fixturesEngine.setup('curated-plugins'));
|
||||
});
|
||||
|
||||
afterEach(async () => updateConfig({ plugins: null }));
|
||||
|
||||
it('should be extended by "serverless-offline"', async () => {
|
||||
await updateConfig({ plugins: ['serverless-offline'] });
|
||||
const slsProcessPromise = spawn(serverlessExec, ['offline'], {
|
||||
cwd: serviceDir,
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user