Skip to content

Commit

Permalink
syncing up to 467560a3b0dcccfa7c7bf4302c939222366f9e77
Browse files Browse the repository at this point in the history
Co-authored-by: Joey Greco <[email protected]>
  • Loading branch information
superblocksadmin and joeyagreco committed Oct 7, 2024
1 parent 9631f7b commit 2d3b4ec
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
40 changes: 22 additions & 18 deletions workers/javascript/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
module.exports = {
roots : [ '<rootDir>/' ],
collectCoverageFrom : [ 'src/**/*.ts', '!src/gen/**' ],
collectCoverage : true,
coverageProvider : 'v8', // jest sometimes returns exit code 1 on coverage
// after codegen files
coveragePathIgnorePatterns : [ 'local.test.ts' ],
setupFilesAfterEnv : [ '<rootDir>/.jest/setupEnv.ts' ],
transform : {'^.+\\.(png|ts|tsx)$' : 'ts-jest'},
testRegex : '(/__tests__/.*|(\\.)(test|spec))\\.tsx?$',
moduleFileExtensions : [ 'ts', 'tsx', 'js', 'jsx', 'json', 'node', 'css' ],
moduleDirectories : [ 'node_modules', 'src' ],
transformIgnorePatterns : [ '<rootDir>/node_modules/' ],
moduleNameMapper : {
'\\.(css|less)$' : '<rootDir>/test/__mocks__/styleMock.js',
'\\.svg$' : '<rootDir>/test/__mocks__/svgMock.js',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$' : '<rootDir>/test/__mocks__/fileMock.js'
roots: ['<rootDir>/'],
collectCoverageFrom: ['src/**/*.ts', '!src/gen/**'],
collectCoverage: true,
coverageProvider: 'v8', // jest sometimes returns exit code 1 on coverage
// after codegen files
coveragePathIgnorePatterns: ['local.test.ts'],
setupFilesAfterEnv: ['<rootDir>/.jest/setupEnv.ts'],
transform: { '^.+\\.(png|ts|tsx)$': 'ts-jest' },
testRegex: '(/__tests__/.*|(\\.)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node', 'css'],
moduleDirectories: ['node_modules', 'src'],
transformIgnorePatterns: ['<rootDir>/node_modules/'],
moduleNameMapper: {
'\\.(css|less)$': '<rootDir>/test/__mocks__/styleMock.js',
'\\.svg$': '<rootDir>/test/__mocks__/svgMock.js',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/test/__mocks__/fileMock.js'
},
passWithNoTests : true,
testPathIgnorePatterns : [ 'local.test.ts', 'test/apis' ]
passWithNoTests: true,
testPathIgnorePatterns: ['local.test.ts', 'test/apis'],
// https://jestjs.io/docs/configuration#testtimeout-number
// default timeout of test in milliseconds
// 10 seconds by default, can overwrite in test file
testTimeout: 10000
};
3 changes: 0 additions & 3 deletions workers/javascript/packages/plugins/mariadb/src/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ import { cloneDeep } from 'lodash';
import { Connection, createConnection } from 'mariadb';
import MariaDBPlugin from '.';

const SECOND = 1000;
jest.setTimeout(10 * SECOND);

const MARIADB_HOST = '127.0.0.1';
const MARIADB_PORT = 23306;
const MARIADB_USER = 'root';
Expand Down

0 comments on commit 2d3b4ec

Please sign in to comment.