Skip to content

Commit a5f0a12

Browse files
test(@embark/snark): re-active test script but skip tests that need additional refactoring
1 parent eb33aa1 commit a5f0a12

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/plugins/snark/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"qa": "npm-run-all lint _typecheck _build test",
5151
"reset": "npx rimraf coverage dist embark-*.tgz package",
5252
"solo": "embark-solo",
53-
"// test": "jest"
53+
"test": "jest"
5454
},
5555
"dependencies": {
5656
"@babel/runtime-corejs3": "7.8.4",
@@ -115,7 +115,7 @@
115115
"**/test/**/*.js"
116116
],
117117
"transform": {
118-
"\\.js$": [
118+
"\\.(js|ts)$": [
119119
"babel-jest",
120120
{
121121
"rootMode": "upward"
@@ -131,4 +131,4 @@
131131
"npm": ">=6.11.3",
132132
"yarn": ">=1.19.1"
133133
}
134-
}
134+
}

packages/plugins/snark/test/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ describe('embark-snark', () => {
2727
describe('bigInt patching', () => {
2828
it("should patch the prototype of snarkjs' bigInt constructor with a toJSON method", () => {
2929
expect(snarkjs.bigInt.prototype.toJSON).toBeUndefined();
30-
({ Snarks, default: plugin } = require('../dist/index.js'));
30+
({ Snarks, default: plugin } = require('../src'));
3131
expect(new snarkjs.bigInt().toJSON()).toBe(someString);
3232
});
3333
});
3434
});
3535

36-
describe('Snarks class', () => {
36+
// tests remain to be refactored after changes in PR #2235
37+
describe.skip('Snarks class', () => {
3738
describe('static properties', () => {
3839
it('should have the expected static properties', () => {
3940
expect(Snarks.snarkjsBinary).toBe(somePath);

0 commit comments

Comments
 (0)