Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-dynalite

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-dynalite - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

LICENSE

3

dist/environment.js

@@ -13,2 +13,5 @@ "use strict";

process.env.MOCK_DYNAMODB_ENDPOINT = `localhost:${port}`;
// aws-sdk requires access and secret key to be able to call DDB
process.env.AWS_ACCESS_KEY_ID = "access-key";
process.env.AWS_SECRET_ACCESS_KEY = "secret-key";
class DynaliteEnvironment extends jest_environment_node_1.default {

@@ -15,0 +18,0 @@ constructor() {

2

package.json
{
"name": "jest-dynalite",
"version": "1.0.0",
"version": "1.0.2",
"description": "Run your tests using Jest & Dynalite",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -16,2 +16,3 @@ # jest-dynalite

## Usage
```

@@ -22,2 +23,3 @@ yarn add jest-dynalite -D

jest.config.js
```javascript

@@ -32,2 +34,3 @@ module.exports = {

which should exist for your tests.
```json

@@ -43,1 +46,20 @@ {

```
Usage
```javascript
const ddb = new DocumentClient({
...yourConfig,
...(process.env.MOCK_DYNAMODB_ENDPOINT && {
endpoint: process.env.MOCK_DYNAMODB_ENDPOINT,
sslEnabled: false,
region: "local"
})
});
```
`process.env.MOCK_DYNAMODB_ENDPOINT` is unqiue to test runner
## License
`MIT`

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc