1.1.3 • Published 2 years ago
node-expo-random v1.1.3
node-expo-random
The package node-expo-random
provides the same interface of expo-random
. So Thus, you can implement mocks that work as expected even in the Node environment.
const random = require('node-expo-random');
const bytes = random.getRandomBytes(8);
console.log(bytes); // Uint8Array(8) [5, 169, 234, 152, 41, 248, 121, 197]
This package also contains default mocks for Jest testing framework. For details on how to configure, see below.
Install
$ npm install --save-dev node-expo-random
Jest configuration
In your Jest configuration.
{
...
"json": {
"setupFilesAfterEnv": [
"node-expo-random/jest-setup.js"
]
}
}
1.1.3
2 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.0-pre.6
3 years ago
1.1.0-pre.5
3 years ago
1.1.0-pre.4
3 years ago
1.1.0-pre.2
3 years ago
1.1.0-pre.1
3 years ago
1.1.0-pre.0
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago