@pollyjs/ember

6.0.6 • Public • Published

Polly.JS

Record, Replay, and Stub HTTP Interactions

Build Status npm version license

Installing the @pollyjs/ember addon will import and vendor the necessary Polly.JS packages as well as register the Express API required by the REST Persister.

Installation

ember install @pollyjs/ember

Documentation

Check out the Ember CLI Addon documentation for more details.

Configuration

Addon and server API configuration can be specified in <app root>/config/polly.js. The default configuration options are shown below.

module.exports = function(env) {
  return {
    // Addon Configuration Options
    enabled: env !== 'production',

    // Server Configuration Options
    server: {
      apiNamespace: '/polly',
      recordingsDir: 'recordings'
    }
  };
};

Usage

Once installed and configured, you can import and use Polly as documented. Check out the Quick Start documentation to get started.

For an even better testing experience, check out the provided QUnit Test Helper!

License

Copyright (c) 2018 Netflix, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
6.0.62,708latest

Version History

VersionDownloads (Last 7 Days)Published
6.0.62,708
6.0.16
6.0.00
5.2.00
5.1.11
5.1.00
5.0.10
5.0.00
4.3.042
4.2.10
4.2.00
4.1.00
4.0.40
4.0.20
4.0.10
4.0.00
3.0.10
3.0.00
2.7.033
2.6.30
2.6.20
2.6.10
2.6.00
2.5.00
2.4.00
2.3.10
2.3.00
2.2.00
2.1.00
2.0.00
1.4.20
1.4.10
1.3.20
1.3.10
1.2.00
1.0.50
1.0.40
1.0.30
1.0.20
1.0.112
1.0.00
0.4.20
0.4.10
0.4.00
0.3.10
0.3.00
0.2.10
0.2.00
0.1.00
0.0.20
0.0.10

Package Sidebar

Install

npm i @pollyjs/ember

Weekly Downloads

2,802

Version

6.0.6

License

Apache-2.0

Unpacked Size

37.8 kB

Total Files

10

Last publish

Collaborators

  • offirgolan
  • jasonmit