This repository has been archived by the owner on Jul 13, 2022. It is now read-only.
Releases: kaliber5/ember-fastboot-addon-tests
Releases · kaliber5/ember-fastboot-addon-tests
ember-data-version
- supports specifying the used ember-data version
Update dependencies, drop node 4
v0.5.0 v0.5.0
v0.3.0
- added
ember fastboot:serve
command to directly run your FastBoot test app
v0.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');
});
});
});