persona-community-5/.pnpm-store/v3/files/34/f8b49b367668a160a612670ca11e9099b8ef994f58244e34687b1db55959889b619e2c0c5166fdab6d627aa47e1ecd9bb3e077fbdd6404ec53aaf75ba64c47
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

31 lines
1.2 KiB
Plaintext

import * as path from 'path';
import { loadConfig } from '../load';
// FIXME: skipping due to the 'Test environment has been torn down' Jest error.
// Covered the below in the `miscellaneous/resolve-plugins` e2e tests.
// Unskip when Jest gets this fixed.
describe.skip('resolving a plugin', () => {
const configPath = path.join(__dirname, 'fixtures/plugin-config.yaml');
it('should prefix rule names with the plugin id', async () => {
const config = await loadConfig({ configPath });
const plugin = config.styleguide.plugins[0];
expect(plugin.rules?.oas3).toHaveProperty('test-plugin/openid-connect-url-well-known');
});
it('should prefix preprocessor names with the plugin id', async () => {
const config = await loadConfig({ configPath });
const plugin = config.styleguide.plugins[0];
expect(plugin.preprocessors?.oas2).toHaveProperty('test-plugin/description-preprocessor');
});
it('should prefix decorator names with the plugin id', async () => {
const config = await loadConfig({ configPath });
const plugin = config.styleguide.plugins[0];
expect(plugin.decorators?.oas3).toHaveProperty('test-plugin/inject-x-stats');
});
});