Skip to content

Commit

Permalink
Update TC
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilbadyal committed Dec 10, 2024
1 parent 4796b61 commit a09b475
Show file tree
Hide file tree
Showing 9 changed files with 13,850 additions and 1,380 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

274 changes: 0 additions & 274 deletions .eslintrc.json

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
name: Checkout
uses: actions/checkout@v4

-
name: Run tests
- name: Run tests
run : |
yarn install
yarn test
Expand Down
2 changes: 1 addition & 1 deletion __test__/github_auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('auth tests', () => {
await expect(() => getReleases(invalidOctokit, 'bs')).rejects.toThrowError()
})
it('failed on empty token', async () => {
await expect(() =>
expect(() =>
getMyOctokit('', {
log: console
})
Expand Down
5 changes: 4 additions & 1 deletion __test__/github_fetch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { parse } from 'dotenv'
import { beforeEach, describe, expect, it, jest } from '@jest/globals'
import fs from 'node:fs'
import { join } from 'node:path'
import { debug, info } from '@actions/core'
let octokit
const testTimeout = 30_000
jest.setTimeout(testTimeout)
Expand All @@ -16,6 +17,7 @@ describe('fetching test cases', () => {
key != 'GITHUB_RUN_ID' &&
key.startsWith('GITHUB_')
) {
debug(`Deleting env - ${key}`)
delete process.env[key]
}
}
Expand All @@ -25,7 +27,8 @@ describe('fetching test cases', () => {
for (const environment in repoEnvironment) {
process.env[environment] = repoEnvironment[environment]
}
octokit = getMyOctokit(process.env.GITHUB_TOKEN ?? '', {
// @ts-ignore
octokit = getMyOctokit(process.env.GITHUB_TOKEN, {
log: console
})
})
Expand Down
Loading

0 comments on commit a09b475

Please sign in to comment.