Skip to content

Commit 4fded4f

Browse files
committed
more debug for encryption tests
1 parent 13d6864 commit 4fded4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/encryption/encryption.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ describe('ci', () => {
1717
const file = fs.readFileSync(cwd + '/data/mo-expansion.yml', { encoding: 'utf-8' }).trim().split('\n');
1818
const regex = /^(?<key>.*): "(?<value>.*)"$/;
1919
const variables = file.map((line) => regex.exec(line.trim()).groups).reduce((acc, { key, value }) => ({ ...acc, [key]: value }), {});
20+
console.log('File contents', file);
21+
console.log('Variables', variables);
2022
process.env.CRYPT_SHARED_LIB_PATH = variables.CRYPT_SHARED_LIB_PATH;
2123
process.env.MONGOOSE_TEST_URI = variables.MONGODB_URI;
2224
});

0 commit comments

Comments
 (0)