UNPKG

@wepy/plugin-define

Version:

wepy define plugin

21 lines (16 loc) 553 B
const path = require('path'); const { exec } = require('child_process'); const expect = require('chai').expect; describe('plugin-define integration', function() { it('full build', function(done) { this.timeout(5000); let wepyPath = path.resolve(process.cwd(), '../cli/bin/wepy.js'); exec(`cd test/fixtures && node ${wepyPath} build`, function(error) { if (error) { throw error; } expect(require('./fixtures/weapp/app.js')).to.deep.equal(require('./fixtures/expected/app.js')); done(); }); }); });