Comments (10)
Raising the limit sounds good! The default 100kb is definitely too low for many reasonable cases. 🙂
I wouldn’t expose bodyParser options to ECFT users. It’s an implementation details that could change (e.g. if we move communication from http to web sockets).
from ember-cli-fastboot-testing.
@CvX Agreed! Would you like me to raise PR with these changes?
from ember-cli-fastboot-testing.
Yeah, that would be great! 😃
from ember-cli-fastboot-testing.
Yup, totally agree!
from ember-cli-fastboot-testing.
Opened #79
from ember-cli-fastboot-testing.
Hey @KalachevDev you mentioned you're using ember-cli-fastboot-testing with ember-cli-mirage. I'd love to hear about how you've set that up?
from ember-cli-fastboot-testing.
I’m also using mirage factories with ECFT. It’s something along those lines:
import { module, test } from 'qunit';
import { setup, visit, mockServer } from 'ember-cli-fastboot-testing/test-support';
import noteFactory from '../../mirage/factories/note';
module('FastBoot | notes list test', function(hooks) {
setup(hooks);
test('it has the correct page title', async function(assert) {
let note = new noteFactory().build();
await mockServer.get(hostname, '/api/note/1', { note });
let { htmlDocument } = await visit('/notes/1');
assert
.dom('head title', htmlDocument)
.hasText('A test note');
});
});
from ember-cli-fastboot-testing.
@ryanto sure! @CvX we do a bit different:
Created such helper: https://gist.github.com/KalachevDev/e192dc68769803da22a5412b7af602d2
And use it following way in tests:
await mockServer.get(urlToPassToMirage).resolve()
from ember-cli-fastboot-testing.
Awesome, thanks!
This was released as version 0.0.17
from ember-cli-fastboot-testing.
Thanks, @ryanto
from ember-cli-fastboot-testing.
Related Issues (20)
- Does not work with path=dist HOT 5
- Allow user to access fastboot instance in fastboot-testing.js config HOT 5
- Allow user to pass functions inside the `options` parameter while calling `visit` HOT 1
- Support for ember projects with a rootURL containing a subdirectory HOT 3
- Deprecation Warning in Ember 3.9+ HOT 2
- Visit helper not returning correct content upon using `this.replaceWith` for redirection HOT 4
- FastBoot.distPath returns deleted path upon running `ember test` HOT 2
- Allow for custom host in mockServer calls HOT 2
- mockServer.get not working HOT 6
- Error messages are not escaped
- Build fails with latest Babel.js
- A future for this repo. HOT 4
- najax not present when using jQuery in v0.4/v0.5 HOT 1
- Add ability to specify response headers in mocked responses HOT 1
- Use config/fastboot.js instead of separate config/fastboot-testing.js HOT 2
- Config not working HOT 5
- [0.6.0] req.headers.origin undefined in CLI mode
- Skip outputReady in production builds HOT 4
- Cut new release v0.6.1 HOT 4
- Monorepo support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-fastboot-testing.