Skip to content

Instantly share code, notes, and snippets.

View gabrielcsapo's full-sized avatar
💻
In the matrix

Gabriel Csapo gabrielcsapo

💻
In the matrix
View GitHub Profile
@gabrielcsapo
gabrielcsapo / update-assert-expect.js
Created April 11, 2023 23:49
jscodeshift update assert.expect
export default function transformer(file, api) {
const j = api.jscodeshift;
return j(file.source)
.find(j.CallExpression, {
callee: {
type: 'Identifier',
name: 'test',
},
})