test(@embark/snark): re-active test script but skip tests that need additional refactoring

This commit is contained in:
Michael Bradley, Jr 2020-03-19 14:48:06 -05:00 committed by Michael Bradley
parent eb33aa16ee
commit a5f0a1254e
2 changed files with 6 additions and 5 deletions

View File

@ -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"

View File

@ -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);