Skip to content

Commit 5ae6478

Browse files
committed
chore(internal): Remove skipped testcase we've been skipping for 4 years
1 parent 1153db3 commit 5ae6478

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

packages/internal/src/__tests__/build_api.test.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -95,29 +95,6 @@ test('api prebuild uses babel config only from the api side root', () => {
9595
expect(code).not.toContain(`import kitty from "kitty-purr"`)
9696
})
9797

98-
// Still a bit of a mystery why this plugin isn't transforming gql tags
99-
test.skip('api prebuild transforms gql with `babel-plugin-graphql-tag`', async () => {
100-
// babel-plugin-graphql-tag should transpile the "gql" parts of our files,
101-
// achieving the following:
102-
// 1. removing the `graphql-tag` import
103-
// 2. convert the gql syntax into graphql's ast.
104-
//
105-
// https://www.npmjs.com/package/babel-plugin-graphql-tag
106-
const builtFiles = await prebuildApiFiles(findApiFiles())
107-
const p = builtFiles
108-
.filter((x) => typeof x !== 'undefined')
109-
.filter((p) => p.endsWith('todos.sdl.js'))
110-
.pop()
111-
112-
if (!p) {
113-
throw new Error('No built files')
114-
}
115-
116-
const code = fs.readFileSync(p, 'utf-8')
117-
expect(code.includes('import gql from "graphql-tag";')).toEqual(false)
118-
expect(code.includes('gql`')).toEqual(false)
119-
})
120-
12198
test('jest mock statements also handle', () => {
12299
const pathToTest = path.join(getPaths().api.services, 'todos/todos.test.js')
123100

0 commit comments

Comments
 (0)