File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change 1
- import fs from 'fs/promises'
2
- import path from 'path'
3
- import { fileURLToPath } from 'url'
4
-
5
- import { beforeAll , jest } from '@jest/globals'
6
- import nock from 'nock'
1
+ import { jest } from '@jest/globals'
7
2
8
3
import { getDOM , getJSON } from '../helpers/e2etest.js'
9
4
import enterpriseServerReleases from '../../lib/enterprise-server-releases.js'
10
5
11
- const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
12
-
13
6
describe ( 'featuredLinks' , ( ) => {
14
7
jest . setTimeout ( 3 * 60 * 1000 )
15
8
16
- beforeAll ( async ( ) => {
17
- const packagesFeedFixturePayload = await fs . readFile (
18
- path . join ( __dirname , '../fixtures/github-blog-feed-packages-2021.xml' ) ,
19
- 'utf-8'
20
- )
21
- nock ( 'https://github.blog' )
22
- . get ( '/changelog/label/packages/feed' )
23
- . reply ( 200 , packagesFeedFixturePayload )
24
- } )
25
-
26
- afterAll ( ( ) => nock . cleanAll ( ) )
27
-
28
9
describe ( 'rendering' , ( ) => {
29
10
test ( 'non-TOC pages do not have intro links' , async ( ) => {
30
11
const $ = await getDOM ( '/en/get-started/quickstart/set-up-git' )
You can’t perform that action at this time.
0 commit comments