chore: rename js files to ts
This commit is contained in:

committed by
Gitea

parent
7fe9f17e43
commit
321850ec20
16
cypress/e2e/list/prepareLists.ts
Normal file
16
cypress/e2e/list/prepareLists.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import {ListFactory} from '../../factories/list'
|
||||
import {UserFactory} from '../../factories/user'
|
||||
import {NamespaceFactory} from '../../factories/namespace'
|
||||
import {TaskFactory} from '../../factories/task'
|
||||
|
||||
export function prepareLists(setLists = () => {}) {
|
||||
beforeEach(() => {
|
||||
UserFactory.create(1)
|
||||
NamespaceFactory.create(1)
|
||||
const lists = ListFactory.create(1, {
|
||||
title: 'First List'
|
||||
})
|
||||
setLists(lists)
|
||||
TaskFactory.truncate()
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user