文件操作 - resolve-plugins.test.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@redocly/openapi-core/src/config/__tests__/resolve-plugins.test.ts
编辑文件内容
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'); }); });
修改文件时间
将文件时间修改为当前时间的前一年
删除文件