can-fixture icon indicating copy to clipboard operation
can-fixture copied to clipboard

Intercept and simulate AJAX requests. Works without CanJS.

Results 21 can-fixture issues
Sort by recently updated
recently updated
newest added

I was playing with CanJS using Snowpack and I got this error: Caused in this line: https://github.com/canjs/can-fixture/blob/7ac8816f078a7a2382c537ef215f894f8fdfd5eb/fixture.js#L70 For more context, the `require.resolve` part was introduced in this PR: https://github.com/canjs/can-fixture/pull/85

## Version **2.0.0** of **steal-tools** was just published. Dependency steal-tools Current Version 1.11.10 Type devDependency The version **2.0.0** is **not covered** by your **current version range**. If you don’t accept...

greenkeeper

## Version **2.0.0** of **steal** was just published. Dependency steal Current Version 1.12.4 Type devDependency The version **2.0.0** is **not covered** by your **current version range**. If you don’t accept...

greenkeeper

## [can-fixture.html](https://canjs.com/doc/can-fixture.html) - [ ] codepen - [ ] [fixture(ajaxSettings, null)](doc/can-fixture.html#fixture_ajaxSettings_null_) 404s in browser and doesn't reflect on codepen. - [x] indentation ## [can-fixture.delay.html](https://canjs.com/doc/can-fixture.delay.html) - [x] codepen - [x] indentation...

documentation

can-fixture currently only intercepts XHR requests. It would be nice if it also supports the [fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).

enhancement
help wanted
needs a hero

Currently the delay can only be set globally. I would like a long global delay but one particular endpoint to be shorter. I would recommend a third argument to fixture...

enhancement

https://codepen.io/justinbmeyer/pen/gBBObr?editors=1010 if you remove `fixture` from being imported, the example still works.

bug
easy

We are using `can-fixture` to build our projects. To return our data in the fixtures we use `fixture('GET /foo/bar', () => foobarStore.getList().data);`. The data is then directly returned. When we...

When I tried to use this package with [unpkg.com](https://unpkg.com) it did not work: https://unpkg.com/[email protected]/dist/global/can-fixture.js Because the `dist` directory isn't in the npm package. ![image](https://user-images.githubusercontent.com/76821/27661358-3813ef86-5c17-11e7-99ab-e5e4d7209d9d.png)

enhancement
help wanted
easy
p2