Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Dec 13, 2024
1 parent 02dc698 commit 3bcaa77
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ module.exports = {
'<rootDir>/x-pack/packages/kbn-cloud-security-posture/storybook/config/babel_with_emotion.ts',
},
setupFiles: ['jest-canvas-mock'],
setupFilesAfterEnv: ['<rootDir>/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/setup_tests.ts'],
setupFilesAfterEnv: [
'<rootDir>/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/setup_tests.ts',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ const Template: Story<NodeViewModel> = (args: NodeViewModel) => {

const initialEdges = [
{
id: 'source-' + args.id,
id: `source-${args.id}`,
source: 'source',
target: args.id,
data: {
id: 'source-' + args.id,
id: `source-${args.id}`,
source: 'source',
sourceShape: 'rectangle',
target: args.id,
Expand All @@ -103,11 +103,11 @@ const Template: Story<NodeViewModel> = (args: NodeViewModel) => {
type: 'default',
},
{
id: args.id + '-target',
id: `${args.id}-target`,
source: args.id,
target: 'target',
data: {
id: args.id + '-target',
id: `${args.id}-target`,
source: args.id,
sourceShape: 'label',
target: 'target',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ GraphLargeStackedEdgeCases.args = {
id: 'a(oktauser)-b(hackeruser)',
source: 'oktauser',
target: 'hackeruser',
label: 'CreateUser' + idx,
label: `CreateUser${idx}`,
color: 'primary',
shape: 'label',
})),
Expand All @@ -524,7 +524,7 @@ GraphLargeStackedEdgeCases.args = {
id: 'a(siem-windows)-b(user)',
source: 'siem-windows',
target: 'user',
label: 'User login to OKTA' + idx,
label: `User login to OKTA${idx}`,
color: 'danger',
shape: 'label',
})),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const DiamondNode: React.FC<NodeProps> = memo((props: NodeProps) => {
style={HandleStyleOverride}
/>
</NodeShapeContainer>
<NodeLabel>{Boolean(label) ? label : id}</NodeLabel>
<NodeLabel>{label ? label : id}</NodeLabel>
</>
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const EllipseNode: React.FC<NodeProps> = memo((props: NodeProps) => {
style={HandleStyleOverride}
/>
</NodeShapeContainer>
<NodeLabel>{Boolean(label) ? label : id}</NodeLabel>
<NodeLabel>{label ? label : id}</NodeLabel>
</>
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const HexagonNode: React.FC<NodeProps> = memo((props: NodeProps) => {
style={HandleStyleOverride}
/>
</NodeShapeContainer>
<NodeLabel>{Boolean(label) ? label : id}</NodeLabel>
<NodeLabel>{label ? label : id}</NodeLabel>
</>
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const LabelNode: React.FC<NodeProps> = memo((props: NodeProps) => {
<LabelNodeContainer>
{interactive && <LabelShapeOnHover color={color} />}
<LabelShape color={color} textAlign="center">
{Boolean(label) ? label : id}
{label ? label : id}
</LabelShape>
<Handle
type="target"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const PentagonNode: React.FC<NodeProps> = memo((props: NodeProps) => {
style={HandleStyleOverride}
/>
</NodeShapeContainer>
<NodeLabel>{Boolean(label) ? label : id}</NodeLabel>
<NodeLabel>{label ? label : id}</NodeLabel>
</>
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const RectangleNode: React.FC<NodeProps> = memo((props: NodeProps) => {
style={HandleStyleOverride}
/>
</NodeShapeContainer>
<NodeLabel>{Boolean(label) ? label : id}</NodeLabel>
<NodeLabel>{label ? label : id}</NodeLabel>
</>
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/solutions/security/plugins/cloud_defend'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/cloud_defend',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/cloud_defend',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/cloud_defend/{common,public,server}/**/*.{ts,tsx}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/solutions/security/plugins/cloud_security_posture'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/cloud_security_posture',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/cloud_security_posture',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/cloud_security_posture/{common,public,server}/**/*.{ts,tsx}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/solutions/security/plugins/kubernetes_security'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/kubernetes_security',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/kubernetes_security',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/kubernetes_security/{common,public,server}/**/*.{ts,tsx}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/solutions/security/plugins/session_view'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/session_view',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/solutions/security/plugins/session_view',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/x-pack/solutions/security/plugins/session_view/{common,public,server}/**/*.{ts,tsx}',
Expand Down

0 comments on commit 3bcaa77

Please sign in to comment.