Skip to content

Commit 8799edd

Browse files
SHARD-2019 - Prettier github-automation
1 parent 1abf7b1 commit 8799edd

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

jest.config.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@ module.exports = {
33
testEnvironment: 'node',
44
testMatch: ['**/test/**/*.test.ts'],
55
collectCoverage: true,
6-
collectCoverageFrom: [
7-
"src/**/*.{ts,tsx}",
8-
"!src/**/*.d.ts"
9-
],
6+
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
107
coverageDirectory: 'coverage',
118
coverageReporters: ['text', 'lcov', 'json-summary'],
129
coverageThreshold: {
1310
global: {
1411
branches: 0,
1512
functions: 0,
1613
lines: 0,
17-
statements: 0
18-
}
19-
}
20-
};
14+
statements: 0,
15+
},
16+
},
17+
}

prettier.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ module.exports = {
22
singleQuote: true,
33
trailingComma: 'es5',
44
semi: false,
5-
printWidth: 150,
5+
printWidth: 120,
66
}

test/helloWorld.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// test/helloWorld.test.ts
22

3-
import { helloWorld } from '../src/helloWorld';
3+
import { helloWorld } from '../src/helloWorld'
44

55
test('should return greeting with provided name', () => {
6-
const name = 'World';
7-
const result = helloWorld(name);
8-
expect(result).toBe('Hello, World!');
9-
});
6+
const name = 'World'
7+
const result = helloWorld(name)
8+
expect(result).toBe('Hello, World!')
9+
})
1010

1111
test('should return greeting with another name', () => {
12-
const name = 'TypeScript';
13-
const result = helloWorld(name);
14-
expect(result).toBe('Hello, TypeScript!');
15-
});
12+
const name = 'TypeScript'
13+
const result = helloWorld(name)
14+
expect(result).toBe('Hello, TypeScript!')
15+
})

0 commit comments

Comments
 (0)