<a name"0.3.2">
- Added
emberCliFastbootVersion
option to specify FastBoot version
<a name"0.3.1">
- Fix to get ember version from ember-source
<a name"0.3.0">
- added
ember fastboot:serve
command to directly run your FastBoot test app
<a name"0.2.0">
- fixed nested route blueprint
- added --app-name option to fastboot-test blueprint to generate test for different test app
- support adding additional packages to test app
BREAKING CHANGES
- Visit helper does not implicitly test for response status code of 200 anymore. You have to add that assertions to your own tests where needed.
- Setup of tests changed, you have to call
setupTest
inside yourdescribe
function
Before:
var expect = require('chai').expect;
describe('index', function() {
it('renders', function() {
return this.visit('/')
.then(function(res) {
var $ = res.jQuery;
// var response = res.response;
// add your real tests here
expect($('body').length).to.equal(1);
expect($('h1').text().trim()).to.equal('ember-fastboot-addon-tests');
});
});
});
After:
const expect = require('chai').expect;
const setupTest = require('ember-fastboot-addon-tests').setupTest;
describe('index', function() {
setupTest('fastboot'/*, options */);
it('renders', function() {
return this.visit('/')
.then(function(res) {
let $ = res.jQuery;
let response = res.response;
// add your real tests here
expect(response.statusCode).to.equal(200);
expect($('body').length).to.equal(1);
expect($('h1').text().trim()).to.equal('ember-fastboot-addon-tests');
});
});
});
<a name"0.1.0">
- Initial release