• Stars
    star
    197
  • Rank 197,722 (Top 4 %)
  • Language
    TypeScript
  • Created almost 10 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Utility for mocking XMLHttpRequest.

xhr-mock

This repo is a mono-repo managed by lernajs.

πŸ“– Documentation

The documentation for the main NPM package can be found here.

πŸ›  Development

Install the dependencies:

yarn
yarn run bootstrap

The NPM package

Build and test the package:

cd packages/xhr-mock
yarn run build # transpile the sources
yarn run test  # run the unit tests

The integration tests

Test the package against a few well known XHR libraries:

# NOTE: you need to build the main package first
cd packages/xhr-mock-tests
yarn run test  # run the integration tests

🎁 Contributing

Contributors are very welcome! Please raise an issue or PR on Github.

More Repositories

1

styled-components-breakpoint

Utility function for using breakpoints with styled-components πŸ’….
JavaScript
240
star
2

styled-components-grid

A responsive grid components for styled-components.
JavaScript
220
star
3

styled-components-spacing

Responsive margin and padding components for styled-components πŸ’….
JavaScript
213
star
4

react-lazily-render

Delay mounting expensive components until a placeholder component has been scrolled into view.
JavaScript
22
star
5

react-create-component-from-tag-prop

Create a `react` component from a `tag` prop.
JavaScript
18
star
6

redux-when

Redux middleware for delaying dispatch of an action until a condition evaluates to true.
JavaScript
18
star
7

redux-formo

An alternate forms framework for Redux+React.
JavaScript
9
star
8

satay

A utility for uploading static sites to AWS S3.
TypeScript
9
star
9

react-render-image

Render an image in React.
TypeScript
8
star
10

wait-for-event

Wait for events to be triggered.
TypeScript
6
star
11

react-testutils-render

A lite wrapper for shallow rendering React components.
JavaScript
6
star
12

substance

βš—οΈPrimitives for building components.
TypeScript
5
star
13

publish-if-not-published

Publish a package if the current version isn't already published.
TypeScript
4
star
14

sass-triangle

Mixin for creating CSS triangles.
CSS
4
star
15

tradie-v4

A framework for building tools like `create-react-app` tailored to your use case and tech stack.
TypeScript
4
star
16

webpack-resolve-short-path-plugin

A plugin for `enhanced-resolve` (Webpack v2) that resolves paths like `~module` to `%rootPath%/module` so you don't have to write relative paths like `../../../module`.
JavaScript
4
star
17

react-firebase

React hooks for working with firebase.
TypeScript
3
star
18

koa

A number of packages made to work with koa.
TypeScript
3
star
19

tradie

A semi-opinionated build tool for frontend projects. Use it to lint, bundle and test your script and style files.
JavaScript
3
star
20

run-if-diff

Run a command if files have changed.
JavaScript
3
star
21

react-app-example

JavaScript
1
star
22

react

πŸ“¦ βš›οΈ A collection of packages for building React applications.
TypeScript
1
star
23

react-testutils-query

Utility functions for retrieving elements from within a React virtual-dom tree.
JavaScript
1
star
24

buildkite-pipelines

Generate Buildkite pipelines from code.
TypeScript
1
star
25

now-deploy-action

Deploy a project using ZEIT Now.
JavaScript
1
star
26

rev-manifest-path

Get the cache busted path of an asset from a `gulp-rev` or `gulp-rev-all` manifest.
JavaScript
1
star
27

cancelable-promise

A cancelable promise implementation.
TypeScript
1
star
28

tradie-template-react-static-site

Tradie template for building static sites with React.
JavaScript
1
star
29

generator-fed

Yeoman generator for Frontend Development with Browserify and SASS Composer.
JavaScript
1
star
30

react-static-site-example

react-static-site-example
JavaScript
1
star
31

design-system-example

A demonstration of the tooling setup for a React based Design System.
TypeScript
1
star
32

koa-reload-middleware

Reload middleware if it changes during development.
TypeScript
1
star
33

workspace-metadata-webpack-plugin

Display workspace metadata on your website.
TypeScript
1
star