Skip to content

Commit

Permalink
Fix babel config to allow Jest to run (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyyue-b authored Jul 20, 2022
1 parent 1391ed8 commit fb1e542
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 1 addition & 8 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
module.exports = {
presets: [
[
'@babel/preset-env',
// '@babel/preset-react',
// '@babel/preset-typescript',
{ targets: { node: 'current' }, extensions: ['*.ts', '*.tsx'] },
],
],
presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'],
};
9 changes: 9 additions & 0 deletions src/setup/setup.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as Setup from './setup';
describe('setup functions', () => {
it('should set the global variable when passed', () => {
const APIKEY = 'HELLO';
Setup.BreinifySetup({ apiKey: APIKEY });

expect(Setup.BreinifyGlobalConfigs.apiKey).toEqual(APIKEY);
});
});

0 comments on commit fb1e542

Please sign in to comment.