Skip to content

Commit f472239

Browse files
committed
fix: add stub source and test for pipeline testing
1 parent e184620 commit f472239

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"build": "yarn prepack",
2222
"generate-types": "graphql-codegen --config codegen.yml",
2323
"prepare": "npx husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks",
24-
"prepack": "rm -rf dist",
24+
"prepack": "rm -rf dist && tsc",
2525
"test": "NODE_ENV=test jest",
2626
"lint": "eslint --config .eslintrc.json --ext .js,.ts ./",
2727
"lint:fix": "eslint --fix --config .eslintrc.json --ext .js,.ts ./",

src/services/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const message = 'Hello, World!';
2+
// eslint-disable-next-line no-console
3+
console.log(message);

test/stub.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
describe('Stub test: ', () => {
2+
const result = true
3+
4+
describe('Always Pass', () => {
5+
test('should return a truthy value ', () => {
6+
expect(result).toBeTruthy()
7+
})
8+
})
9+
})

0 commit comments

Comments
 (0)