Browse Source

test: remove invalid test and avoid jest pick up tests from emsdk folder.

20230320
Jixun Wu 2 years ago
parent
commit
892fea509f
  1. 9
      jest.config.js
  2. 20
      src/decrypt/__test__/QmcCache.test.ts

9
jest.config.js

@ -1,8 +1,7 @@
module.exports = { module.exports = {
setupFilesAfterEnv: [ testPathIgnorePatterns: ['/build/', '/dist/', '/node_modules/'],
'./src/__test__/setup_jest.js' setupFilesAfterEnv: ['./src/__test__/setup_jest.js'],
],
moduleNameMapper: { moduleNameMapper: {
'@/(.*)': '<rootDir>/src/$1' '@/(.*)': '<rootDir>/src/$1',
} },
}; };

20
src/decrypt/__test__/QmcCache.test.ts

@ -1,20 +0,0 @@
// import { DecryptBuffer as DecryptQmcCacheBuffer } from '../qmccache';
// import fs from 'fs';
//
// const expectedBuffer = fs.readFileSync(__dirname + '/fixture/qmc_cache_expected.bin');
//
// const createInputBuffer = () => {
// const buffer = Buffer.alloc(256);
// for (let i = buffer.byteLength; i >= 0; i--) {
// buffer[i] = i;
// }
// return buffer;
// };
//
// describe('decrypt/qmccache', () => {
// it('should decrypt specified buffer correctly', () => {
// const input = createInputBuffer();
// DecryptQmcCacheBuffer(input);
// expect(input).toEqual(expectedBuffer);
// });
// });
Loading…
Cancel
Save