我在我的項目中使用了angular-ui-grid 4.0.2(最新版本)。angular-ui-grid - no gridTestUtils.spec.js
根據這裏的文檔: http://ui-grid.info/docs/#/tutorial/403_end_to_end_testing。
在名爲'e2e'的文件夾中應該有某種可用的測試實用程序模塊,名爲'gridObjectTestUtils.spec.js'。
據我所見,沒有這樣的模塊存在。 這裏是源碼鏈接: https://github.com/angular-ui/ui-grid.info/tree/gh-pages/release/4.0.2
有沒有人知道測試模塊是否仍然可用?或者它已被棄用?
這些實用程序不存在,因爲它們沒有公開它。 如果你看看「ui-grid/package.json」,你會注意到test目錄已經在「directories.test」中被提及。 根據文檔,「directories.test」應該用於以下目的: 「把你的測試放在這裏,它目前沒有暴露,但可能在未來。」 在命令行輸入「npm help json」以獲取更多信息。 –