Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

teraslice esm migration #3511

Merged
merged 21 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"extends": "@terascope",
"rules": {
"@typescript-eslint/naming-convention": "off"
}
},
"ignorePatterns":["packages/teraslice"]
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ COPY service.js /app/source/
RUN node -e "require('node-rdkafka')"

# verify teraslice is installed right
RUN node -e "require('teraslice')"
RUN node -e "import('teraslice')"

EXPOSE 5678

Expand Down
26 changes: 26 additions & 0 deletions e2e/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,30 @@ const config = require('../jest.config.base')(__dirname);
config.testPathIgnorePatterns = process.env.TEST_PLATFORM === 'kubernetes' ? ['data/recovery-spec', 'cluster/worker-allocation-spec', 'cluster/state-spec'] : [];
config.collectCoverage = false;
delete config.transform;
// config.moduleNameMapper = {
// '^(\\.{1,2}/.*)\\.js$': '$1',
// };
config.transform = {};
// config.transformIgnorePatterns = [];
// config.transform['^.+\\.(t|j)sx?$'] = ['@swc/jest', {
// jsc: {
// loose: true,
// parser: {
// syntax: 'typescript',
// tsx: false,
// decorators: true
// },
// transform: {
// legacyDecorator: true,
// decoratorMetadata: true
// },
// target: 'es2022'
// },
// module: {
// type: 'commonjs',
// strictMode: false,
// noInterop: false
// }
// }];

module.exports = config;
Loading
Loading