mirror of https://github.com/embarklabs/embark.git
test(@embark/snark): re-active test script but skip tests that need additional refactoring
This commit is contained in:
parent
eb33aa16ee
commit
a5f0a1254e
|
@ -50,7 +50,7 @@
|
|||
"qa": "npm-run-all lint _typecheck _build test",
|
||||
"reset": "npx rimraf coverage dist embark-*.tgz package",
|
||||
"solo": "embark-solo",
|
||||
"// test": "jest"
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime-corejs3": "7.8.4",
|
||||
|
@ -115,7 +115,7 @@
|
|||
"**/test/**/*.js"
|
||||
],
|
||||
"transform": {
|
||||
"\\.js$": [
|
||||
"\\.(js|ts)$": [
|
||||
"babel-jest",
|
||||
{
|
||||
"rootMode": "upward"
|
||||
|
|
|
@ -27,13 +27,14 @@ describe('embark-snark', () => {
|
|||
describe('bigInt patching', () => {
|
||||
it("should patch the prototype of snarkjs' bigInt constructor with a toJSON method", () => {
|
||||
expect(snarkjs.bigInt.prototype.toJSON).toBeUndefined();
|
||||
({ Snarks, default: plugin } = require('../dist/index.js'));
|
||||
({ Snarks, default: plugin } = require('../src'));
|
||||
expect(new snarkjs.bigInt().toJSON()).toBe(someString);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('Snarks class', () => {
|
||||
// tests remain to be refactored after changes in PR #2235
|
||||
describe.skip('Snarks class', () => {
|
||||
describe('static properties', () => {
|
||||
it('should have the expected static properties', () => {
|
||||
expect(Snarks.snarkjsBinary).toBe(somePath);
|
||||
|
|
Loading…
Reference in New Issue