mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
* add testcontainers to playwright-lib * include retry mechanism for transient failures * - Introduced a new command `testcontainers:up` in package.json to run Playwright tests with Testcontainers. - Created a standalone Playwright configuration file `playwright.testcontainers-up.config.ts` for managing Testcontainers. - Added a no-op test `testcontainers_up.spec.ts` to ensure the Testcontainers stack is up during the test run. - Implemented a global setup script `testcontainers_up_global_setup.ts` to start and stop the Testcontainers stack. - Updated dependencies in package.json, including adding `chalk` for logging. * fix package-lock * fix tsc and restore waiting for all migrations to complete --------- Co-authored-by: Mattermost Build <[email protected]>
54 lines
1.3 KiB
JavaScript
54 lines
1.3 KiB
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import typescript from '@rollup/plugin-typescript';
|
|
import copy from 'rollup-plugin-copy';
|
|
|
|
export default {
|
|
input: 'src/index.ts',
|
|
output: [
|
|
{
|
|
dir: 'dist',
|
|
format: 'esm',
|
|
sourcemap: true,
|
|
preserveModules: true, // Keep file structure
|
|
preserveModulesRoot: 'src',
|
|
},
|
|
],
|
|
plugins: [
|
|
typescript(),
|
|
copy({
|
|
targets: [
|
|
{src: 'src/asset/**/*', dest: 'dist/asset'}, // Copy assets to dist/
|
|
{src: 'src/containers/assets/**/*', dest: 'dist/containers/assets'},
|
|
],
|
|
}),
|
|
],
|
|
external: [
|
|
'@playwright/test',
|
|
'@mattermost/client',
|
|
'@mattermost/types/config',
|
|
'@axe-core/playwright',
|
|
'@azure/storage-blob',
|
|
'@percy/playwright',
|
|
'@testcontainers/postgresql',
|
|
'dotenv',
|
|
'ldapts',
|
|
'luxon',
|
|
'minio',
|
|
'node:child_process',
|
|
'node:path',
|
|
'node:fs',
|
|
'node:fs/promises',
|
|
'node:os',
|
|
'node:url',
|
|
'node:util',
|
|
'mime-types',
|
|
'testcontainers',
|
|
'uuid',
|
|
'async-wait-until',
|
|
'chalk',
|
|
'deepmerge',
|
|
],
|
|
};
|