/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
-import 'mocha'
-import * as chai from 'chai'
+import { expect } from 'chai'
import { pathExists, remove } from 'fs-extra'
import { join } from 'path'
import { testHelloWorldRegisteredSettings } from '@server/tests/shared'
setAccessTokensToServers
} from '@shared/server-commands'
-const expect = chai.expect
-
describe('Test plugins', function () {
let server: PeerTubeServer = null
let command: PluginsCommand
})
it('Should rebuild native modules on Node ABI change', async function () {
- this.timeout(50000)
+ this.timeout(60000)
const removeNativeModule = async () => {
await remove(join(baseNativeModule, 'build'))
await server.kill()
await server.run()
+ await wait(3000)
+
expect(await pathExists(join(baseNativeModule, 'build'))).to.be.true
expect(await pathExists(join(baseNativeModule, 'prebuilds'))).to.be.true